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