summaryrefslogtreecommitdiff
path: root/rootfs/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-02-28 07:35:22 -0500
committerAndrew Cady <d@cryptonomic.net>2021-02-28 07:35:22 -0500
commit96b6d94576d5f895058d3da8ed1dee7e013a869f (patch)
tree30354f037e94d75ba052dea95c6ae4396bd58b07 /rootfs/Makefile
parent80b859d4f4eb00d1ea78d36a8baaa67d5b6f9078 (diff)
rootfs makefile: add missing deps; add targets clean and gold
Diffstat (limited to 'rootfs/Makefile')
-rw-r--r--rootfs/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/rootfs/Makefile b/rootfs/Makefile
index bcb885b..b7a039c 100644
--- a/rootfs/Makefile
+++ b/rootfs/Makefile
@@ -8,14 +8,29 @@ sudo := $(shell [ "$$(id -u)" = 0 ] || echo sudo)
8 8
9rootfs ?= samizdat.seed.btrfs 9rootfs ?= samizdat.seed.btrfs
10patchfs ?= samizdat.patch.btrfs 10patchfs ?= samizdat.patch.btrfs
11gold ?= samizdat-gold.btrfs
11 12
12.PHONY: all rootfs patchfs 13.PHONY: all rootfs patchfs gold
13all: rootfs $(ifneq $(patchfs),,patchfs) 14all: $(rootfs) $(patchfs) $(gold)
15
16clean:
17 rm -f $(rootfs) $(patchfs) $(gold)
18
19rootfs: $(rootfs)
20patchfs: $(patchfs)
21gold: $(gold)
22
23%.patch.btrfs: %.seed.btrfs
24 $(sudo) $(fsmgr) build $@
25
26%.seed.btrfs: %.btrfs
27 $(sudo) $(fsmgr) build $@
14 28
15%.btrfs: 29%.btrfs:
16 $(sudo) $(fsmgr) build $@ 30 $(sudo) $(fsmgr) build $@
17 31
18rootfs: $(rootfs) 32$(gold): $(rootfs)
33 $(sudo) $(fsmgr) build $@
19 34
20patchfs: 35$(patchfs):
21 $(sudo) REWRITE_SOURCES_LIST=y $(fsmgr) build $(patchfs) 36 $(sudo) REWRITE_SOURCES_LIST=y $(fsmgr) build $(patchfs)