mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Use $(filter) to check targets
This commit is contained in:
parent
50d163895d
commit
3064e84c5f
8
Makefile
8
Makefile
@ -36,11 +36,9 @@ all: crystal
|
|||||||
crystal: pokecrystal.gbc
|
crystal: pokecrystal.gbc
|
||||||
crystal11: pokecrystal11.gbc
|
crystal11: pokecrystal11.gbc
|
||||||
|
|
||||||
# Ensure that the tools are built when making the ROM
|
# Build tools when building the rom
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifeq (,$(filter clean tools,$(MAKECMDGOALS)))
|
||||||
ifneq ($(MAKECMDGOALS),tools)
|
Makefile: tools ;
|
||||||
Makefile: tools
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user