freebsd-src/unit-tests/directive-ifmake.exp
Simon J. Gerraty cdde9e894d Import bmake-20220204
Features of interest:

Allow setting target local variables (similar to gmake)

In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands
before comparion.

contrib/bmake/mk/cc-wrap.mk is an example of using these

See ChangeLog for the gory details.
2022-02-05 12:03:50 -08:00

16 lines
549 B
Plaintext

make: "directive-ifmake.mk" line 13: ok: positive condition works
make: "directive-ifmake.mk" line 24: ok: negation works
make: "directive-ifmake.mk" line 33: ok: double negation works
make: "directive-ifmake.mk" line 40: ok: both mentioned
make: "directive-ifmake.mk" line 47: ok: only those mentioned
make: "directive-ifmake.mk" line 57: Targets can even be added at parse time.
make: "directive-ifmake.mk" line 75: ok
: first
: second
: late-target
make: don't know how to make !edge (continuing)
Stop.
make: stopped in unit-tests
exit status 1