From 4b4d45529bd48d2a8246a020cba3f54a452d8f2f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 10 Oct 2014 18:09:02 +0200 Subject: [PATCH] rootfs: Add make install target to install files for NFS server --- rootfs/build/GNUmakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rootfs/build/GNUmakefile b/rootfs/build/GNUmakefile index 2cc14f5..14a4f96 100644 --- a/rootfs/build/GNUmakefile +++ b/rootfs/build/GNUmakefile @@ -10,7 +10,7 @@ MAKEFLAGS += --no-print-directory .PHONY: all $(MAKECMDGOALS) -all := $(filter-out all Makefile,$(MAKECMDGOALS)) +all := $(filter-out all Makefile install,$(MAKECMDGOALS)) all: $(MAKE) $(MAKEARGS) $(all) @@ -22,3 +22,7 @@ $(all): all %/: all @: + +install: + install -d -m 755 $(DESTDIR)/srv/nfs/ryu-rootfs + tar -C $(DESTDIR)/srv/nfs/ryu-rootfs -xf images/rootfs.tar -- 2.39.2