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