Make mtree a host tool and use it when appropriate.
This commit is contained in:
parent
bc1697fc70
commit
a28fcd776c
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.180 2001/10/04 16:46:22 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.181 2001/10/09 05:19:04 enami Exp $
|
||||
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
|
||||
|
||||
# Environment variables without default values:
|
||||
|
@ -273,7 +273,7 @@ distribution: distrib-dirs
|
|||
|
||||
distrib-dirs:
|
||||
${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
|
||||
mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -U
|
||||
${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U
|
||||
cd ${DESTDIR}/; rm -f sys; ln -s usr/src/sys sys
|
||||
|
||||
.if !defined(RELEASEDIR)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.185 2001/10/08 10:01:35 mrg Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.186 2001/10/09 05:19:04 enami Exp $
|
||||
|
||||
.if !defined(_BSD_OWN_MK_)
|
||||
_BSD_OWN_MK_=1
|
||||
|
@ -57,6 +57,7 @@ LORDER= NM="${NM}" ${TOOLDIR}/bin/lorder
|
|||
MAKEINFO= ${TOOLDIR}/bin/makeinfo
|
||||
MKDEP= CC="${CC}" ${TOOLDIR}/bin/mkdep
|
||||
#MKLOCALE= ${TOOLDIR}/bin/mklocale
|
||||
MTREE= ${TOOLDIR}/bin/mtree
|
||||
NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm
|
||||
#NROFF= ${TOOLDIR}/bin/nroff -Tascii
|
||||
OBJC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.sys.mk,v 1.50 2001/09/08 01:00:44 christos Exp $
|
||||
# $NetBSD: bsd.sys.mk,v 1.51 2001/10/09 05:19:04 enami Exp $
|
||||
#
|
||||
# Overrides used for NetBSD source tree builds.
|
||||
|
||||
|
@ -61,6 +61,7 @@ STRIP?= strip
|
|||
CONFIG?= config
|
||||
RPCGEN?= rpcgen
|
||||
MKLOCALE?= mklocale
|
||||
MTREE?= mtree
|
||||
|
||||
.SUFFIXES: .m .o .ln .lo
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: Makefile,v 1.5 2001/10/04 16:33:05 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.6 2001/10/09 05:19:05 enami Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# XXX this should use real dependencies
|
||||
SUBDIR= binstall .WAIT gencat mkdep rpcgen tsort \
|
||||
SUBDIR= binstall .WAIT gencat mkdep mtree rpcgen tsort \
|
||||
yacc .WAIT lex .WAIT \
|
||||
compile_et config lint lint1 lint2 lorder \
|
||||
toolchain .WAIT texinfo
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.1 2001/10/09 05:19:05 enami Exp $
|
||||
|
||||
HOST_SRCDIR= usr.sbin/mtree
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
||||
${TIMESTAMP}: ${SRCS}
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.17 2001/10/09 04:50:00 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.18 2001/10/09 05:19:03 enami Exp $
|
||||
# from: @(#)Makefile 8.2 (Berkeley) 4/27/95
|
||||
|
||||
PROG= mtree
|
||||
|
@ -15,4 +15,6 @@ CPPFLAGS+= -I${.CURDIR}/../../bin/ls -I${.CURDIR}/../../sbin/mknod
|
|||
${.CURDIR}/../../bin/ls \
|
||||
${.CURDIR}/../../sbin/mknod
|
||||
|
||||
.ifndef HOSTPROG
|
||||
.include <bsd.prog.mk>
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue