2020-11-07 19:39:21 +00:00
|
|
|
# $NetBSD: depsrc-exec.mk,v 1.3 2020/09/05 15:57:12 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
2020-11-07 19:39:21 +00:00
|
|
|
# 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
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2020-11-07 19:39:21 +00:00
|
|
|
${MAKEFILE}: .EXEC
|
|
|
|
: ${.TARGET:T}: This is always executed.
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2020-11-07 19:39:21 +00:00
|
|
|
${MAKEFILE:H}/depsrc.mk:
|
|
|
|
: This is not executed.
|
|
|
|
+: ${.TARGET:T}: This is not executed as well.
|