xref: /freebsd/contrib/bmake/unit-tests/depsrc-make.mk (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1# $NetBSD: depsrc-make.mk,v 1.4 2020/11/15 20:20:58 rillig Exp $
2#
3# Tests for the special source .MAKE in dependency declarations, which
4# executes the commands of the target even if the -n or -t command line
5# options are given.
6
7# TODO: Add a test for the -t command line option.
8
9.MAKEFLAGS: -n
10
11all: this-is-made
12all: this-is-not-made
13
14this-is-made: .MAKE
15	@echo ${.TARGET} is made.
16
17this-is-not-made:
18	@echo ${.TARGET} is just echoed.
19