]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/depsrc-exec.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / depsrc-exec.mk
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
9 all: ${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.