ref: 3064e84c5f6e2cc4b812713f89725124ebc757a9
parent: 50d163895d16352144161ada1a74356e7226fa92
author: yenatch <yenatch@gmail.com>
date: Sun Aug 20 08:35:36 EDT 2017
Use $(filter) to check targets
--- a/Makefile
+++ b/Makefile
@@ -36,11 +36,9 @@
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: