From 1bc9362245970caf2e3dd87269878e363f44b4f5 Mon Sep 17 00:00:00 2001 From: Ron Williams Date: Fri, 16 Dec 2022 19:22:44 -0800 Subject: [PATCH] Add image and r.PACKAGE targets --- Makefile | 6 ++++++ mk/repo.mk | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 8fb583c..0ec0316 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,12 @@ all: $(BUILD)/harddrive.img live: $(BUILD)/livedisk.iso +image: + -$(FUMOUNT) $(BUILD)/filesystem/ || true + -$(FUMOUNT) /tmp/redox_installer/ || true + rm -rf $(BUILD)/harddrive.img + $(MAKE) all + rebuild: -$(FUMOUNT) $(BUILD)/filesystem/ || true -$(FUMOUNT) /tmp/redox_installer/ || true diff --git a/mk/repo.mk b/mk/repo.mk index ef16224..48818ea 100644 --- a/mk/repo.mk +++ b/mk/repo.mk @@ -26,3 +26,13 @@ else touch $< touch $@ endif + +# Invoke repo.sh for a single target +r.%: FORCE +ifeq ($(PODMAN_BUILD),1) + $(PODMAN_RUN) $(MAKE) $@ +else + export PATH="$(PREFIX_PATH):$$PATH" && \ + cd cookbook && \ + ./repo.sh $* +endif