diff options
Diffstat (limited to 'rootfs/Makefile')
-rw-r--r-- | rootfs/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/rootfs/Makefile b/rootfs/Makefile index 3c7cf0a..c68e45a 100644 --- a/rootfs/Makefile +++ b/rootfs/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | fsmgr := $(shell which fsmgr) | 1 | fsmgr := $(shell command -v fsmgr) |
2 | 2 | ||
3 | ifeq ($(fsmgr),) | 3 | ifeq ($(fsmgr),) |
4 | $(error "no fsmgr") | 4 | $(error "no fsmgr") |
@@ -8,13 +8,15 @@ 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 | ||
12 | 11 | ||
13 | .DEFAULT_GOAL = all | 12 | .DEFAULT_GOAL = all |
14 | 13 | ||
15 | .PHONY: all rootfs patchfs clean | 14 | .PHONY: all rootfs patchfs clean |
16 | all: $(rootfs) $(patchfs) | 15 | all: $(rootfs) $(patchfs) |
17 | 16 | ||
17 | _build _filesystem: | ||
18 | $(sudo) btrfs subvolume create $@ | ||
19 | |||
18 | clean = $(patchfs) $(rootfs) $(rootfs:%.seed.btrfs=%.btrfs) | 20 | clean = $(patchfs) $(rootfs) $(rootfs:%.seed.btrfs=%.btrfs) |
19 | clean := $(clean) $(clean:%=%.tmp) | 21 | clean := $(clean) $(clean:%=%.tmp) |
20 | 22 | ||
@@ -23,7 +25,6 @@ clean: | |||
23 | 25 | ||
24 | rootfs: $(rootfs) | 26 | rootfs: $(rootfs) |
25 | patchfs: $(patchfs) | 27 | patchfs: $(patchfs) |
26 | gold: $(gold) | ||
27 | 28 | ||
28 | %.patch.btrfs: %.seed.btrfs | 29 | %.patch.btrfs: %.seed.btrfs |
29 | $(sudo) $(fsmgr) build $@ | 30 | $(sudo) $(fsmgr) build $@ |
@@ -34,9 +35,6 @@ gold: $(gold) | |||
34 | %.btrfs: | 35 | %.btrfs: |
35 | $(sudo) $(fsmgr) build $@ | 36 | $(sudo) $(fsmgr) build $@ |
36 | 37 | ||
37 | $(gold): $(rootfs) | ||
38 | $(sudo) $(fsmgr) build $@ | ||
39 | |||
40 | $(patchfs): $(rootfs) | 38 | $(patchfs): $(rootfs) |
41 | 39 | ||
42 | $(patchfs) $(rootfs): | 40 | $(patchfs) $(rootfs): |