aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jan Chren (rindeal) <dev.rindeal@gmail.com>2019-10-09 17:45:40 +0200
committerGravatar Jan Chren (rindeal) <dev.rindeal@gmail.com>2019-10-09 17:45:40 +0200
commit7cc108f6a823948f0fbb53263bbe62426f9d1701 (patch)
tree8f0683dc43d20054dfec0d0b5de9cbb10ca36805 /Makefile
parent0125684d3ff47167e1e5bd59df1802519e6fe5d3 (diff)
downloadnnn-7cc108f6a823948f0fbb53263bbe62426f9d1701.tar.gz
allow multiple make targets being specified at once
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9b96345..b707ec2 100644
--- a/Makefile
+++ b/Makefile
@@ -14,13 +14,13 @@ O_NORL := 0 # no readline support
O_NOLOC := 0 # no locale support
# convert targets to flags for backwards compatibility
-ifeq ($(MAKECMDGOALS),debug)
+ifneq ($(filter debug,$(MAKECMDGOALS)),)
O_DEBUG := 1
endif
-ifeq ($(MAKECMDGOALS),norl)
+ifneq ($(filter norl,$(MAKECMDGOALS)),)
O_NORL := 1
endif
-ifeq ($(MAKECMDGOALS),noloc)
+ifneq ($(filter noloc,$(MAKECMDGOALS)),)
O_NORL := 1
O_NOLOC := 1
endif