From 96b6d94576d5f895058d3da8ed1dee7e013a869f Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 28 Feb 2021 07:35:22 -0500 Subject: rootfs makefile: add missing deps; add targets clean and gold --- rootfs/Makefile | 23 +++++++++++++++++++---- 1 file 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) rootfs ?= samizdat.seed.btrfs patchfs ?= samizdat.patch.btrfs +gold ?= samizdat-gold.btrfs -.PHONY: all rootfs patchfs -all: rootfs $(ifneq $(patchfs),,patchfs) +.PHONY: all rootfs patchfs gold +all: $(rootfs) $(patchfs) $(gold) + +clean: + rm -f $(rootfs) $(patchfs) $(gold) + +rootfs: $(rootfs) +patchfs: $(patchfs) +gold: $(gold) + +%.patch.btrfs: %.seed.btrfs + $(sudo) $(fsmgr) build $@ + +%.seed.btrfs: %.btrfs + $(sudo) $(fsmgr) build $@ %.btrfs: $(sudo) $(fsmgr) build $@ -rootfs: $(rootfs) +$(gold): $(rootfs) + $(sudo) $(fsmgr) build $@ -patchfs: +$(patchfs): $(sudo) REWRITE_SOURCES_LIST=y $(fsmgr) build $(patchfs) -- cgit v1.2.3