xref: /freebsd/contrib/bmake/unit-tests/varname-dot-libs.mk (revision 956e45f6fb3e18b8e89b1341708db60c30bb9f27)
1*956e45f6SSimon J. Gerraty# $NetBSD: varname-dot-libs.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
22c3632d1SSimon J. Gerraty#
32c3632d1SSimon J. Gerraty# Tests for the special .LIBS variable, which is not documented in the
42c3632d1SSimon J. Gerraty# manual page.
52c3632d1SSimon J. Gerraty#
62c3632d1SSimon J. Gerraty# It is yet unclear in which situations this feature is useful.
72c3632d1SSimon J. Gerraty
82c3632d1SSimon J. Gerraty.SUFFIXES: .a
92c3632d1SSimon J. Gerraty
102c3632d1SSimon J. Gerraty.PATH.a: . ..
112c3632d1SSimon J. Gerraty
122c3632d1SSimon J. Gerraty.LIBS: .a
132c3632d1SSimon J. Gerraty
142c3632d1SSimon J. Gerraty# The .LIBS variable is not yet available.
15*956e45f6SSimon J. Gerraty.if defined(.LIBS)
162c3632d1SSimon J. Gerraty.  error
172c3632d1SSimon J. Gerraty.endif
182c3632d1SSimon J. Gerraty
192c3632d1SSimon J. Gerratyall:
202c3632d1SSimon J. Gerraty	@echo .LIBS=${.LIBS:Q}
21