freebsd-src/unit-tests/deptgt-phony.mk
Simon J. Gerraty a052cb4320 Import bmake-20220330
Most relevant change:

	o parse.c: try to include 'posix.mk' the first time
	.POSIX: is encountered, to allow for beter POSIX compliance.

Others

	o cond.c: make debug logging for comparisons less technical
	o lst.c: fix mem leak in Lst_Remove
	o job.c: fix echoing of command with '-' in silent target in jobs mode
	o var.c: make debug logs more readable
	prefer 'long long' over 'long' on 32-bit C99 platforms
	fix crash on .undef of an environment variable
2022-04-03 12:52:08 -07:00

32 lines
891 B
Makefile

# $NetBSD: deptgt-phony.mk,v 1.3 2022/02/11 23:44:18 rillig Exp $
#
# Tests for the special target .PHONY in dependency declarations.
# TODO: Implementation
all:
# https://gnats.netbsd.org/15164 describes that .PHONY targets are still
# looked up in directories, even though .PHONY means that these targets do
# _not_ correspond to actual files.
#
# expect: Expanding "depsrc-phony-pr-15164-*-wildcard"...
# expect: Expanding "deptgt-phony-pr-15164-*-wildcard"...
.MAKEFLAGS: -dds
depsrc-phony-pr-15164: .PHONY
: Making ${.TARGET}
depsrc-phony-pr-15164-*-wildcard: .PHONY
: Making ${.TARGET}
.PHONY: deptgt-phony-pr-15164
deptgt-phony-pr-15164:
: Making ${.TARGET}
.PHONY: deptgt-phony-pr-15164-*-wildcard
deptgt-phony-pr-15164-*-wildcard:
: Making ${.TARGET}
all: depsrc-phony-pr-15164 depsrc-phony-pr-15164-*-wildcard
all: deptgt-phony-pr-15164 deptgt-phony-pr-15164-*-wildcard