summaryrefslogtreecommitdiff
path: root/unit-tests/depsrc-make.mk
blob: f7b5a9cca8ff69cda125b679e6141bc57ca2a09d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# $NetBSD: depsrc-make.mk,v 1.3 2020/09/05 15:57:12 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.

.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.