summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/varname-dot-libs.mk
blob: 99d28be71e43770e3b0a26358905f083dc8fe359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: varname-dot-libs.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
#
# Tests for the special .LIBS variable, which is not documented in the
# manual page.
#
# It is yet unclear in which situations this feature is useful.

.SUFFIXES: .a

.PATH.a: . ..

.LIBS: .a

# The .LIBS variable is not yet available.
.if defined(.LIBS)
.  error
.endif

all:
	@echo .LIBS=${.LIBS:Q}