xref: /freebsd/contrib/bmake/unit-tests/varname-dot-libs.mk (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1# $NetBSD: varname-dot-libs.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
2#
3# Tests for the special .LIBS variable, which is not documented in the
4# manual page.
5#
6# It is yet unclear in which situations this feature is useful.
7
8.SUFFIXES: .a
9
10.PATH.a: . ..
11
12.LIBS: .a
13
14# The .LIBS variable is not yet available.
15.if defined(.LIBS)
16.  error
17.endif
18
19all:
20	@echo .LIBS=${.LIBS:Q}
21