From: Jan Chren (rindeal) Date: Wed, 9 Oct 2019 15:45:40 +0000 (+0200) Subject: allow multiple make targets being specified at once X-Git-Tag: v2.8~182^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7cc108f6a823948f0fbb53263bbe62426f9d1701;p=nnn.git allow multiple make targets being specified at once --- diff --git a/Makefile b/Makefile index 9b963457..b707ec29 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