Add image and r.PACKAGE targets

This commit is contained in:
Ron Williams 2022-12-16 19:22:44 -08:00
parent 8a4b12150b
commit 1bc9362245
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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