aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/deptgt-default.mk
blob: bf5f16536561fcfe7ddf1b9411e18e0fc5aed376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $NetBSD: deptgt-default.mk,v 1.3 2021/12/01 23:56:29 rillig Exp $
#
# 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.

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}'."

all: