xref: /freebsd/contrib/bmake/unit-tests/opt-version.mk (revision 38a52bd3b5cac3da6f7f6eef3dd050e6aa08ebb3)
1# $NetBSD: opt-version.mk,v 1.2 2022/05/08 07:27:50 rillig Exp $
2#
3# Tests for the command line option '--version', which may be expected to
4# output the version number of make.  NetBSD's make does not have a version
5# number, but the bmake distribution created from it has.
6
7# As of 2021-12-23, the output is a single empty line since the '--' does not
8# end the command line options.  Command line parsing then continues as if
9# nothing had happened, and the '-version' is split into '-v ersion', which is
10# interpreted as "print the expanded variable named 'ersion'".
11
12.MAKEFLAGS: --version
13