From 63a812020980025d5df90c32d9047d1720dd6f81 Mon Sep 17 00:00:00 2001 From: u Date: Fri, 17 Nov 2023 11:22:02 -0500 Subject: cleanups --- rootfs/Makefile | 10 ++++------ 1 file 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 @@ -fsmgr := $(shell which fsmgr) +fsmgr := $(shell command -v fsmgr) ifeq ($(fsmgr),) $(error "no fsmgr") @@ -8,13 +8,15 @@ sudo := $(shell [ "$$(id -u)" = 0 ] || echo sudo) rootfs ?= samizdat.seed.btrfs patchfs ?= samizdat.patch.btrfs -# gold ?= samizdat-gold.btrfs .DEFAULT_GOAL = all .PHONY: all rootfs patchfs clean all: $(rootfs) $(patchfs) +_build _filesystem: + $(sudo) btrfs subvolume create $@ + clean = $(patchfs) $(rootfs) $(rootfs:%.seed.btrfs=%.btrfs) clean := $(clean) $(clean:%=%.tmp) @@ -23,7 +25,6 @@ clean: rootfs: $(rootfs) patchfs: $(patchfs) -gold: $(gold) %.patch.btrfs: %.seed.btrfs $(sudo) $(fsmgr) build $@ @@ -34,9 +35,6 @@ gold: $(gold) %.btrfs: $(sudo) $(fsmgr) build $@ -$(gold): $(rootfs) - $(sudo) $(fsmgr) build $@ - $(patchfs): $(rootfs) $(patchfs) $(rootfs): -- cgit v1.2.3