]> Sergey Matveev's repositories - nnn.git/commitdiff
allow multiple make targets being specified at once
authorJan Chren (rindeal) <dev.rindeal@gmail.com>
Wed, 9 Oct 2019 15:45:40 +0000 (17:45 +0200)
committerJan Chren (rindeal) <dev.rindeal@gmail.com>
Wed, 9 Oct 2019 15:45:40 +0000 (17:45 +0200)
Makefile

index 9b96345713dd91699736d14ff18994974f978c59..b707ec29f67958d264ce44458d7f1eaf1c1543f4 100644 (file)
--- 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