summaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/depsrc-exec.mk
blob: e2c2b98aa6e8f4bd0b029adb950d5ed224503134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# $NetBSD: depsrc-exec.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $
#
# Tests for the special source .EXEC in dependency declarations,
# which always executes the commands, even if the target is up to date.
# The target itself is considered up to date.
#
# TODO: Describe possible use cases for .EXEC.

all: ${MAKEFILE} ${MAKEFILE:H}/depsrc.mk

${MAKEFILE}: .EXEC
	: ${.TARGET:T}: This is always executed.

${MAKEFILE:H}/depsrc.mk:
	: This is not executed.
	+: ${.TARGET:T}: This is not executed as well.