Change CombiMake file to build all flavours; Rename CombiMake

This commit is contained in:
Jaby
2024-02-13 19:04:36 -05:00
committed by Jaby
parent 944de25b72
commit 223f6c0037
3 changed files with 23 additions and 14 deletions

20
src/Library/MakeAll.mk Normal file
View File

@@ -0,0 +1,20 @@
define run_make
$(MAKE) $1 TV_FORMAT=PAL CUSTOM_CONFIG=$2
$(MAKE) $1 TV_FORMAT=NTSC CUSTOM_CONFIG=$2
endef
define do_target
$(call run_make,$1,)
$(foreach config,$2,$(call run_make,$1,$(config)))
endef
config_files = $(shell cd ../../config && ls -d */)
all:
$(call do_target,all,$(config_files))
clean:
$(call do_target,clean,$(config_files))
rebuild:
$(call do_target,rebuild,$(config_files))