From 1ec4aafb2d627a158e2490349d00b4a4fbc463c0 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 30 Oct 2020 10:30:58 -0400 Subject: rootfs Makefile can build any *.btrfs image --- rootfs/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rootfs/Makefile b/rootfs/Makefile index d664742..bcb885b 100644 --- a/rootfs/Makefile +++ b/rootfs/Makefile @@ -12,8 +12,10 @@ patchfs ?= samizdat.patch.btrfs .PHONY: all rootfs patchfs all: rootfs $(ifneq $(patchfs),,patchfs) -rootfs $(rootfs): - $(sudo) $(fsmgr) build $(rootfs) +%.btrfs: + $(sudo) $(fsmgr) build $@ -patchfs $(patchfs): +rootfs: $(rootfs) + +patchfs: $(sudo) REWRITE_SOURCES_LIST=y $(fsmgr) build $(patchfs) -- cgit v1.2.3