xref: /freebsd/contrib/bmake/unit-tests/depsrc-exec.mk (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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