diff options
author | yenatch <yenatch@gmail.com> | 2017-08-20 12:35:36 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2017-08-20 12:37:23 -0400 |
commit | 3064e84c5f6e2cc4b812713f89725124ebc757a9 (patch) | |
tree | 3fca2c35b18e9ce53c6c5e104587754770c35685 | |
parent | 50d163895d16352144161ada1a74356e7226fa92 (diff) |
Use $(filter) to check targets
-rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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: |