finalize/Makefile

21 lines
639 B
Makefile
Raw Permalink Normal View History

.PHONY := builds finalize.romfs x_finalize_helper.firm clean
2024-03-14 19:07:56 +00:00
all: builds/x_finalize_helper.firm
2024-03-14 19:07:56 +00:00
builds:
@[ -d builds ] || mkdir -p builds
builds/finalize.romfs: builds
@3dstool -c -t romfs --romfs-dir romfs --file $@
2024-03-14 19:07:56 +00:00
builds/x_finalize_helper.firm: builds/finalize.romfs
2024-03-14 19:07:56 +00:00
@cp finalize_helper.gm9 GodMode9/data/autorun.gm9
@sed -i s/FINALIZE_SHA256SUM/$(shell sha256sum $< | awk '{print $$1}')/g GodMode9/data/autorun.gm9
2024-03-14 19:07:56 +00:00
@$(MAKE) -C GodMode9 SCRIPT_RUNNER=1
@cp GodMode9/output/GodMode9.firm $@
2024-05-04 18:57:10 +00:00
@printf '\001' | dd conv=notrunc bs=1 seek=16 of=$@
2024-03-14 19:07:56 +00:00
clean:
@rm -rf builds
@$(MAKE) -C GodMode9 clean
@rm GodMode9/data/autorun.gm9