You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use $(filter) to check targets
This commit is contained in:
8
Makefile
8
Makefile
@@ -36,11 +36,9 @@ all: crystal
|
||||
crystal: pokecrystal.gbc
|
||||
crystal11: pokecrystal11.gbc
|
||||
|
||||
# Ensure that the tools are built when making the ROM
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(MAKECMDGOALS),tools)
|
||||
Makefile: tools
|
||||
endif
|
||||
# Build tools when building the rom
|
||||
ifeq (,$(filter clean tools,$(MAKECMDGOALS)))
|
||||
Makefile: tools ;
|
||||
endif
|
||||
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user