freebsd-src/unit-tests/opt-version.mk
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

13 lines
576 B
Makefile

# $NetBSD: opt-version.mk,v 1.1 2021/12/23 11:05:59 rillig Exp $
#
# Tests for the command line option '--version', which outputs the version
# number of make. NetBSD's make does not have a version number, but the bmake
# distribution created from it has.
# As of 2021-12-23, the output is a single empty line since the '--' does not
# end the command line options. Command line parsing then continues as if
# nothing had happened, and the '-version' is split into '-v ersion', which is
# interpreted as "print the expanded variable named 'ersion'".
.MAKEFLAGS: --version