summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 32df6da..b93941f 100644
--- a/Makefile
+++ b/Makefile
@@ -50,11 +50,15 @@ endif
50 50
51include user.mk 51include user.mk
52 52
53.PHONY: rootfs 53SUBMODULES = fsmgr kiki openssh
54rootfs: 54.PHONY: rootfs submodule $(SUBMODULES)
55 [ -e fsmgr/Makefile ] || git submodule update --init 55
56 $(MAKE) -C fsmgr 56$(SUBMODULES):
57 $(MAKE) -C fsmgr install 57 [ -e $@/Makefile ] || git submodule update --init
58 $(MAKE) -C $@
59 $(MAKE) -C $@ install
60
61rootfs: $(SUBMODULES)
58 $(MAKE) -C rootfs 62 $(MAKE) -C rootfs
59 sudo mkdir -p /srv/nbd 63 sudo mkdir -p /srv/nbd
60 sudo ln -sf "$$PWD"/rootfs/samizdat.btrfs /srv/nbd/samizdat.btrfs 64 sudo ln -sf "$$PWD"/rootfs/samizdat.btrfs /srv/nbd/samizdat.btrfs