NetBSD/usr.bin/make/unit-tests/depsrc-make.mk

17 lines
389 B
Makefile

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