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