Makefile: simplify fox32os.img rule

This commit is contained in:
jn 2023-02-01 20:32:17 +01:00
parent c9457baa42
commit 46f44cdf30

View File

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