2021-12-18 07:27:22 +00:00
|
|
|
# $NetBSD: deptgt-default.mk,v 1.3 2021/12/01 23:56:29 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
2021-12-18 07:27:22 +00:00
|
|
|
# Tests for the special target .DEFAULT in dependency declarations, which
|
|
|
|
# attaches its associated commands to all targets that don't specify any way
|
|
|
|
# to create them.
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2021-12-18 07:27:22 +00:00
|
|
|
all: test-default not-a-target
|
|
|
|
|
|
|
|
test-default: .PHONY
|
|
|
|
|
|
|
|
has-commands: .PHONY
|
|
|
|
@echo 'Making ${.TARGET} from ${.IMPSRC}.'
|
|
|
|
|
|
|
|
.DEFAULT: dependency-is-ignored
|
|
|
|
@echo "Default command is making '${.TARGET}' from '${.IMPSRC}'."
|
2020-09-05 16:11:04 +00:00
|
|
|
|
|
|
|
all:
|