Skip to content

Commit

Permalink
allow multiple make targets being specified at once
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal committed Oct 9, 2019
1 parent 0125684 commit 7cc108f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cc108f

Please sign in to comment.