diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -50,11 +50,15 @@ endif | |||
50 | 50 | ||
51 | include user.mk | 51 | include user.mk |
52 | 52 | ||
53 | .PHONY: rootfs | 53 | SUBMODULES = fsmgr kiki openssh |
54 | rootfs: | 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 | |||
61 | rootfs: $(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 |