freebsd-dev/contrib/bmake/unit-tests/depsrc-exec.mk

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
502 B
Makefile
Raw Normal View History

# $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.