rootfs: Add make install target to install files for NFS server
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Oct 2014 16:09:02 +0000 (18:09 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Oct 2014 16:09:02 +0000 (18:09 +0200)
rootfs/build/GNUmakefile

index 2cc14f5..14a4f96 100644 (file)
@@ -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