xref: /freebsd/contrib/bmake/unit-tests/varfind.mk (revision 0a36787e4c1fa0cf77dcf83be0867178476e372b)
1# $NetBSD: varfind.mk,v 1.1 2020/07/25 21:19:29 rillig Exp $
2#
3# Demonstrates variable name aliases in VarFind.
4
5all: VarFind-aliases.to
6
7.SUFFIXES: .from .to
8
9VarFind-aliases.from:
10	@: do nothing
11
12VarFind-aliases.to: explicit-dependency
13
14explicit-dependency:
15	@: do nothing
16
17.from.to:
18	@echo $@: long ${.ALLSRC:Q}
19	@echo $@: abbr ${>:Q}
20	@echo $@: long ${.ARCHIVE:Q}
21	@echo $@: abbr ${!:Q}
22	@echo $@: long ${.IMPSRC:Q}
23	@echo $@: abbr ${<:Q}
24	@echo $@: long ${.MEMBER:Q}
25	@echo $@: abbr ${%:Q}
26	@echo $@: long ${.OODATE:Q}
27	@echo $@: abbr ${?:Q}
28	@echo $@: long ${.PREFIX:Q}
29	@echo $@: abbr ${*:Q}
30	@echo $@: long ${.TARGET:Q}
31	@echo $@: abbr ${@:Q}
32