2c3632d14f
Lots of code refactoring, simplification and cleanup. Lots of new unit-tests providing much higher code coverage. All courtesy of rillig at netbsd. Other significant changes: o new read-only variable .SHELL which provides the path of the shell used to run scripts (as defined by the .SHELL target). o variable parsing detects more errors. o new debug option -dl: LINT mode, does the equivalent of := for all variable assignments so that file and line number are reported for variable parse errors.
20 lines
419 B
Makefile
20 lines
419 B
Makefile
# $NetBSD: varmod-order.mk,v 1.4 2020/08/16 20:43:01 rillig Exp $
|
|
#
|
|
# Tests for the :O variable modifier, which returns the words, sorted in
|
|
# ascending order.
|
|
|
|
NUMBERS= one two three four five six seven eight nine ten
|
|
|
|
.if ${NUMBERS:O} != "eight five four nine one seven six ten three two"
|
|
.error ${NUMBERS:O}
|
|
.endif
|
|
|
|
# Unknown modifier "OX"
|
|
_:= ${NUMBERS:OX}
|
|
|
|
# Unknown modifier "OxXX"
|
|
_:= ${NUMBERS:OxXX}
|
|
|
|
all:
|
|
@:;
|