summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authortv <tv@NetBSD.org>2001-12-19 18:10:40 +0000
committertv <tv@NetBSD.org>2001-12-19 18:10:40 +0000
commitb8cee5e2376d2d9bee89db8f8ed98ec5d3eea096 (patch)
tree2af56c935122b7ffcd653f3ea62e13c2a78e1f92 /usr.bin
parent864c94c933c4d267518cedd48e9019120b8d0ff0 (diff)
If USETOOLS=yes, as in a cross build or standard tool-based build, create
lint1.7 using the host lint1 tool. Otherwise run lint1 from here, as has been done historically. Should fix toolchain/15001.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xlint/lint1/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/Makefile b/usr.bin/xlint/lint1/Makefile
index 7b3b01cba29..f0887b1787e 100644
--- a/usr.bin/xlint/lint1/Makefile
+++ b/usr.bin/xlint/lint1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2001/11/12 23:16:37 tv Exp $
+# $NetBSD: Makefile,v 1.22 2001/12/19 18:10:40 tv Exp $
.include <bsd.own.mk>
@@ -31,8 +31,14 @@ BINDIR= /usr/libexec
scan.c: cgram.h
CLEANFILES+= ${MAN}
-${MAN}: makeman ${PROG}
- sh ${.ALLSRC} -m >${.TARGET}
+
+.if ${USETOOLS} == "yes"
+LINT1= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-lint1
+.endif
+LINT1?= ./${PROG}
+
+${MAN}: makeman ${LINT1:C/^\.\///} Makefile
+ sh ${.ALLSRC:M*makeman} ${LINT1} -m >${.TARGET}
.ifndef HOSTPROG
.include <bsd.prog.mk>