summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-07-08 14:28:53 -0400
committeryenatch <yenatch@gmail.com>2017-07-08 14:28:53 -0400
commit56ff80212749f8a4aa7b3af7c30e6642252b4781 (patch)
tree6155911a5edb451c30f2d7e23bb071af799cd2c8
parenta0ccf478c2640319ef7c7285819d641556340cd1 (diff)
Don't make tools during clean/tidy
-rwxr-xr-xMakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7d78c43..f1a100e 100755
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ MD5 := md5sum -c
all: $(ROM) compare
-ifeq (,$(filter $(MAKECMDGOALS),tools))
+ifeq (,$(filter tools clean tidy,$(MAKECMDGOALS)))
Makefile: tools
endif
@@ -29,10 +29,11 @@ compare: $(ROM)
@$(MD5) rom.md5
tools:
- @$(MAKE) -C tools
+ $(MAKE) -C tools
tidy:
rm -f $(ROM) $(OBJS) $(ROM:.gbc=.sym) $(ROM:.gbc=.map)
+ $(MAKE) -C tools clean
clean: tidy
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pcm' \) -exec rm {} +