mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Combine poke%.gbc build targets into a generalized one.
Now only one target is needed for all versions. $$* also works instead of %, but in a pattern rule % is probably clearer.
This commit is contained in:
parent
dbef0efa6c
commit
4ad367ba98
12
Makefile
12
Makefile
|
@ -90,17 +90,9 @@ $(all_obj): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_dep))
|
||||||
# Make a symfile for debugging. rgblink will segfault if a mapfile isn't made too.
|
# Make a symfile for debugging. rgblink will segfault if a mapfile isn't made too.
|
||||||
link = rgblink -n $*.sym -m $*.map
|
link = rgblink -n $*.sym -m $*.map
|
||||||
|
|
||||||
pokered.gbc: $(red_obj)
|
poke%.gbc: $$(%_obj)
|
||||||
$(link) -o $@ $^
|
$(link) -o $@ $^
|
||||||
rgbfix $(red_opt) $@
|
rgbfix $($*_opt) $@
|
||||||
|
|
||||||
pokeblue.gbc: $(blue_obj)
|
|
||||||
$(link) -o $@ $^
|
|
||||||
rgbfix $(blue_opt) $@
|
|
||||||
|
|
||||||
pokeyellow.gbc: $(yellow_obj)
|
|
||||||
$(link) -o $@ $^
|
|
||||||
rgbfix $(yellow_opt) $@
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue