xref: /freebsd/contrib/bmake/unit-tests/depsrc-exec.mk (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1# $NetBSD: depsrc-exec.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $
2#
3# Tests for the special source .EXEC in dependency declarations,
4# which always executes the commands, even if the target is up to date.
5# The target itself is considered up to date.
6#
7# TODO: Describe possible use cases for .EXEC.
8
9all: ${MAKEFILE} ${MAKEFILE:H}/depsrc.mk
10
11${MAKEFILE}: .EXEC
12	: ${.TARGET:T}: This is always executed.
13
14${MAKEFILE:H}/depsrc.mk:
15	: This is not executed.
16	+: ${.TARGET:T}: This is not executed as well.
17