Merge pull request #347 from rindeal/make-fix

allow multiple make targets being specified at once
This commit is contained in:
Mischievous Meerkat 2019-10-09 21:24:40 +05:30 committed by GitHub
commit f72cf4cee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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