xref: /freebsd/contrib/bmake/unit-tests/depsrc-make.mk (revision e2eeea75eb8b6dd50c1298067a0655880d186734)
1*e2eeea75SSimon J. Gerraty# $NetBSD: depsrc-make.mk,v 1.4 2020/11/15 20:20:58 rillig Exp $
22c3632d1SSimon J. Gerraty#
3956e45f6SSimon J. Gerraty# Tests for the special source .MAKE in dependency declarations, which
4956e45f6SSimon J. Gerraty# executes the commands of the target even if the -n or -t command line
5956e45f6SSimon J. Gerraty# options are given.
62c3632d1SSimon J. Gerraty
7*e2eeea75SSimon J. Gerraty# TODO: Add a test for the -t command line option.
8*e2eeea75SSimon J. Gerraty
9956e45f6SSimon J. Gerraty.MAKEFLAGS: -n
102c3632d1SSimon J. Gerraty
11956e45f6SSimon J. Gerratyall: this-is-made
12956e45f6SSimon J. Gerratyall: this-is-not-made
13956e45f6SSimon J. Gerraty
14956e45f6SSimon J. Gerratythis-is-made: .MAKE
15956e45f6SSimon J. Gerraty	@echo ${.TARGET} is made.
16956e45f6SSimon J. Gerraty
17956e45f6SSimon J. Gerratythis-is-not-made:
18956e45f6SSimon J. Gerraty	@echo ${.TARGET} is just echoed.
19