Add lorder to TOOLDIR host tools.

Only descend into directories if USE_NEW_TOOLCHAIN is set (allows top level
Makefile to use "-m ${.CURDIR}/share/mk" to get the "correct" <bsd.own.mk>
when descending into src/tools/Makefile).
This commit is contained in:
tv 2001-09-22 04:15:19 +00:00
parent 772c71ae08
commit 14e39089db
2 changed files with 19 additions and 2 deletions

View File

@ -1,10 +1,14 @@
# $NetBSD: Makefile,v 1.2 2001/09/21 23:00:35 tv Exp $
# $NetBSD: Makefile,v 1.3 2001/09/22 04:15:19 tv Exp $
.include <bsd.own.mk>
.ifdef USE_NEW_TOOLCHAIN
# XXX this should use real dependencies
SUBDIR= binstall .WAIT gencat mkdep rpcgen tsort \
yacc .WAIT lex .WAIT \
compile_et config lint lint1 lint2 \
compile_et config lint lint1 lint2 lorder \
toolchain .WAIT texinfo
.endif
TARGETS= build

13
tools/lorder/Makefile Normal file
View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1 2001/09/22 04:15:20 tv Exp $
TIMESTAMP= ${TOOLDIR}/bin/lorder
.PATH: ${.CURDIR}/../../usr.bin/lorder
install: ${TIMESTAMP}
${TIMESTAMP}: lorder.sh
.if !make(build)
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${BINMODE} $> $@
.endif
.include <bsd.hostprog.mk>