summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 063cdc27b..329269cf4 100644
--- a/Makefile
+++ b/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: