1*954401e6SSimon J. Gerraty# $NetBSD: opt-version.mk,v 1.2 2022/05/08 07:27:50 rillig Exp $
29f45a3c8SSimon J. Gerraty#
3*954401e6SSimon J. Gerraty# Tests for the command line option '--version', which may be expected to
4*954401e6SSimon J. Gerraty# output the version number of make.  NetBSD's make does not have a version
5*954401e6SSimon J. Gerraty# number, but the bmake distribution created from it has.
69f45a3c8SSimon J. Gerraty
79f45a3c8SSimon J. Gerraty# As of 2021-12-23, the output is a single empty line since the '--' does not
89f45a3c8SSimon J. Gerraty# end the command line options.  Command line parsing then continues as if
99f45a3c8SSimon J. Gerraty# nothing had happened, and the '-version' is split into '-v ersion', which is
109f45a3c8SSimon J. Gerraty# interpreted as "print the expanded variable named 'ersion'".
119f45a3c8SSimon J. Gerraty
129f45a3c8SSimon J. Gerraty.MAKEFLAGS: --version
13