From 46f44cdf3043f0e92a6448d40eee95a3a9e5eb78 Mon Sep 17 00:00:00 2001 From: jn Date: Wed, 1 Feb 2023 20:32:17 +0100 Subject: [PATCH] Makefile: simplify fox32os.img rule --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f3729f7..4fc8774 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,6 @@ FILES = \ base_image/launcher.fxf fox32os.img: $(BOOTLOADER) $(FILES) - $(RYFS) -s $(IMAGE_SIZE) -l fox32os -b $(BOOTLOADER) create fox32os.img.tmp - cd base_image; for file in *; do $(RYFS) add ../fox32os.img.tmp $$file; done - cp fox32os.img.tmp fox32os.img + $(RYFS) -s $(IMAGE_SIZE) -l fox32os -b $(BOOTLOADER) create $@.tmp + for file in $(FILES); do $(RYFS) add $@.tmp $$file; done + mv $@.tmp $@