diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-02-28 07:35:22 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-02-28 07:35:22 -0500 |
commit | 96b6d94576d5f895058d3da8ed1dee7e013a869f (patch) | |
tree | 30354f037e94d75ba052dea95c6ae4396bd58b07 /rootfs/Makefile | |
parent | 80b859d4f4eb00d1ea78d36a8baaa67d5b6f9078 (diff) |
rootfs makefile: add missing deps; add targets clean and gold
Diffstat (limited to 'rootfs/Makefile')
-rw-r--r-- | rootfs/Makefile | 23 |
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 | ||
9 | rootfs ?= samizdat.seed.btrfs | 9 | rootfs ?= samizdat.seed.btrfs |
10 | patchfs ?= samizdat.patch.btrfs | 10 | patchfs ?= samizdat.patch.btrfs |
11 | gold ?= samizdat-gold.btrfs | ||
11 | 12 | ||
12 | .PHONY: all rootfs patchfs | 13 | .PHONY: all rootfs patchfs gold |
13 | all: rootfs $(ifneq $(patchfs),,patchfs) | 14 | all: $(rootfs) $(patchfs) $(gold) |
15 | |||
16 | clean: | ||
17 | rm -f $(rootfs) $(patchfs) $(gold) | ||
18 | |||
19 | rootfs: $(rootfs) | ||
20 | patchfs: $(patchfs) | ||
21 | gold: $(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 | ||
18 | rootfs: $(rootfs) | 32 | $(gold): $(rootfs) |
33 | $(sudo) $(fsmgr) build $@ | ||
19 | 34 | ||
20 | patchfs: | 35 | $(patchfs): |
21 | $(sudo) REWRITE_SOURCES_LIST=y $(fsmgr) build $(patchfs) | 36 | $(sudo) REWRITE_SOURCES_LIST=y $(fsmgr) build $(patchfs) |