2020-11-15 23:20:58 +03:00
|
|
|
# $NetBSD: depsrc-make.mk,v 1.4 2020/11/15 20:20:58 rillig Exp $
|
2020-08-16 15:07:50 +03:00
|
|
|
#
|
2020-09-05 18:57:12 +03:00
|
|
|
# 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.
|
2020-08-16 15:07:50 +03:00
|
|
|
|
2020-11-15 23:20:58 +03:00
|
|
|
# TODO: Add a test for the -t command line option.
|
|
|
|
|
2020-09-05 18:57:12 +03:00
|
|
|
.MAKEFLAGS: -n
|
2020-08-16 15:07:50 +03:00
|
|
|
|
2020-09-05 18:57:12 +03:00
|
|
|
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.
|