summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authormaya <maya@NetBSD.org>2019-05-07 18:45:37 +0000
committermaya <maya@NetBSD.org>2019-05-07 18:45:37 +0000
commit554005582ffaed7072ecf4083ea9bd9de8dedfa5 (patch)
tree7009f708f734fd5a4e80e80dafb7c00e30e9b5de /lib/libpthread
parent0f4c3e69429ecc39eba762e3246fbb6a67cb9016 (diff)
Make CLEANFILES actually work. .TARGET is not defined when not in a target
rule. Thanks xtos for the heads up.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index ad745d35255..81b28cf1e53 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.93 2019/05/07 18:12:53 maya Exp $
+# $NetBSD: Makefile,v 1.94 2019/05/07 18:45:37 maya Exp $
#
NOSANITIZER= # defined
@@ -281,7 +281,7 @@ __archivebuild: .USE
${LD} -r -o ${.TARGET}.o `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
${AR} ${_ARFL} ${.TARGET} ${.TARGET}.o
-CLEANFILES+= ${.TARGET}.o
+CLEANFILES+= ${_LIBS:=.o}
.include <bsd.lib.mk>