aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/depsrc-make.mk
blob: 8069007e6e115a8a412b67a8676eed3fc3cad9f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $NetBSD: depsrc-make.mk,v 1.4 2020/11/15 20:20:58 rillig Exp $
#
# Tests for the special source .MAKE in dependency declarations, which
# executes the commands of the target even if the -n or -t command line
# options are given.

# TODO: Add a test for the -t command line option.

.MAKEFLAGS: -n

all: this-is-made
all: this-is-not-made

this-is-made: .MAKE
	@echo ${.TARGET} is made.

this-is-not-made:
	@echo ${.TARGET} is just echoed.