freebsd-dev/contrib/bmake/unit-tests/depsrc-exec.mk
Simon J. Gerraty 956e45f6fb Update to bmake-20201101
Lots of new unit-tests increase code coverage.

Lots of refactoring, cleanup and simlpification to reduce
code size.

Fixes for Bug 223564 and 245807

Updates to dirdeps.mk and meta2deps.py
2020-11-07 21:46:27 +00:00

17 lines
502 B
Makefile

# $NetBSD: depsrc-exec.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $
#
# Tests for the special source .EXEC in dependency declarations,
# which always executes the commands, even if the target is up to date.
# The target itself is considered up to date.
#
# TODO: Describe possible use cases for .EXEC.
all: ${MAKEFILE} ${MAKEFILE:H}/depsrc.mk
${MAKEFILE}: .EXEC
: ${.TARGET:T}: This is always executed.
${MAKEFILE:H}/depsrc.mk:
: This is not executed.
+: ${.TARGET:T}: This is not executed as well.