diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2020-09-05 19:29:42 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2020-09-05 19:29:42 +0000 |
commit | 2c3632d14fe37fa35c262ee9fb66835be0a52621 (patch) | |
tree | 57d0bb7a1e21c84dc625ee2f42c7677174a79c81 /contrib/bmake/unit-tests/deptgt-begin.mk | |
parent | 08d0b468f14fec9d8d11eea0c7886f53df4eda2e (diff) | |
parent | 6bbc783f48498b808e19db4441299dc7d85a278b (diff) | |
download | src-2c3632d14fe37fa35c262ee9fb66835be0a52621.tar.gz src-2c3632d14fe37fa35c262ee9fb66835be0a52621.zip |
Update to bmake-20200902
Lots of code refactoring, simplification and cleanup.
Lots of new unit-tests providing much higher code coverage.
All courtesy of rillig at netbsd.
Other significant changes:
o new read-only variable .SHELL which provides the path of the shell
used to run scripts (as defined by the .SHELL target).
o variable parsing detects more errors.
o new debug option -dl: LINT mode, does the equivalent of := for all
variable assignments so that file and line number are reported for
variable parse errors.
Notes
Notes:
svn path=/head/; revision=365366
Diffstat (limited to 'contrib/bmake/unit-tests/deptgt-begin.mk')
-rw-r--r-- | contrib/bmake/unit-tests/deptgt-begin.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/deptgt-begin.mk b/contrib/bmake/unit-tests/deptgt-begin.mk new file mode 100644 index 000000000000..c6ca2f4aa3c7 --- /dev/null +++ b/contrib/bmake/unit-tests/deptgt-begin.mk @@ -0,0 +1,13 @@ +# $NetBSD: deptgt-begin.mk,v 1.3 2020/08/29 17:34:21 rillig Exp $ +# +# Tests for the special target .BEGIN in dependency declarations, +# which is a container for commands that are run before any other +# commands from the shell lines. + +.BEGIN: + : $@ + +all: + : $@ + +_!= echo : parse time 1>&2 |