Use $(filter) to check targets

This commit is contained in:
yenatch 2017-08-20 12:35:36 -04:00
parent 50d163895d
commit 3064e84c5f

View File

@ -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: