summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-11-11 17:09:08 -0800
committerSteven Noonan <steven@uplinklabs.net>2009-11-14 00:29:35 -0800
commit0243dd75b788cc7d6997520518ebfe6ccbd7b4e4 (patch)
tree6bbfe807e1e9136b0071166ffd38b90f847e7ee4 /crawl-ref
parent37516af4cdd39e70d39292f8c04fe9cd91e69461 (diff)
downloadcrawl-ref-0243dd75b788cc7d6997520518ebfe6ccbd7b4e4.tar.gz
crawl-ref-0243dd75b788cc7d6997520518ebfe6ccbd7b4e4.zip
makefile: use 'findstring' for target type checks
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index cf40f4d98a..dce19bd4b9 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -418,7 +418,7 @@ endif
# Debug
# No optimization, full debugging.
-ifeq ($(MAKECMDGOALS),debug)
+ifneq (,$(findstring debug,$(MAKECMDGOALS)))
FULLDEBUG=YesPlease
WIZARD=YesPlease
DEBUG=YesPlease
@@ -427,14 +427,14 @@ endif
# Wizard
# Optimized, with wizard mode.
-ifeq ($(MAKECMDGOALS),wizard)
+ifneq (,$(findstring wizard,$(MAKECMDGOALS)))
WIZARD=YesPlease
DEBUG=YesPlease
endif
# Profile
# Optimized, with full debugging.
-ifeq ($(MAKECMDGOALS),profile)
+ifneq (,$(findstring profile,$(MAKECMDGOALS)))
FULLDEBUG=YesPlease
WIZARD=YesPlease
DEBUG=YesPlease