"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "unit-tests/cond-func-commands.mk" between
bmake-20201101.tar.gz and bmake-20201117.tar.gz

About: bmake a BSD make tool (derived from NetBSD’s make).

cond-func-commands.mk  (bmake-20201101):cond-func-commands.mk  (bmake-20201117)
# $NetBSD: cond-func-commands.mk,v 1.4 2020/10/24 08:46:08 rillig Exp $ # $NetBSD: cond-func-commands.mk,v 1.5 2020/11/15 14:07:53 rillig Exp $
# #
# Tests for the commands() function in .if conditions. # Tests for the commands() function in .if conditions.
.MAIN: all .MAIN: all
# The target "target" does not exist yet, therefore it cannot have commands. # At this point, the target 'target' does not exist yet, therefore it cannot
# have commands. Sounds obvious, but good to know that it is really so.
.if commands(target) .if commands(target)
. error . error
.endif .endif
target: target:
# Now the target exists, but it still has no commands. # Now the target exists, but it still has no commands.
.if commands(target) .if commands(target)
. error . error
.endif .endif
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)