Change CombiMake file to build all flavours; Rename CombiMake
This commit is contained in:
parent
a3d50865c9
commit
29170520eb
|
@ -1,11 +0,0 @@
|
||||||
all:
|
|
||||||
$(MAKE) all TV_FORMAT=PAL
|
|
||||||
$(MAKE) all TV_FORMAT=NTSC
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(MAKE) clean TV_FORMAT=PAL
|
|
||||||
$(MAKE) clean TV_FORMAT=NTSC
|
|
||||||
|
|
||||||
rebuild:
|
|
||||||
$(MAKE) rebuild TV_FORMAT=PAL
|
|
||||||
$(MAKE) rebuild TV_FORMAT=NTSC
|
|
|
@ -28,13 +28,13 @@
|
||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "combi make",
|
"label": "make_all",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": "wsl make -f CombiMake.mk ${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}",
|
"command": "wsl make -f MakeAll.mk ${input:target} BUILD_PROFILE=${input:build cfg}",
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"command": "make -f CombiMake.mk ${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}",
|
"command": "make -f MakeAll.mk ${input:target} BUILD_PROFILE=${input:build cfg}",
|
||||||
},
|
},
|
||||||
"group": "build"
|
"group": "build"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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))
|
Loading…
Reference in New Issue