freebsd-src/unit-tests/deptgt-path-suffix.mk
Simon J. Gerraty cdde9e894d Import bmake-20220204
Features of interest:

Allow setting target local variables (similar to gmake)

In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands
before comparion.

contrib/bmake/mk/cc-wrap.mk is an example of using these

See ChangeLog for the gory details.
2022-02-05 12:03:50 -08:00

17 lines
319 B
Makefile

# $NetBSD: deptgt-path-suffix.mk,v 1.3 2021/12/13 23:38:54 rillig Exp $
#
# Tests for the special target .PATH.suffix in dependency declarations.
# TODO: Implementation
# expect+1: Suffix '.c' not defined (yet)
.PATH.c: ..
.SUFFIXES: .c
# Now the suffix is defined, and the path is recorded.
.PATH.c: ..
all:
@:;