aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-02 21:49:01 +0800
committerjkh <jkh@FreeBSD.org>1995-05-02 21:49:01 +0800
commit03a79b5efb8f1d4c2ab1468cb214fe3bb33d78ad (patch)
tree4ce898cacc0ea2c65ee498f131e9758ec0850824 /Mk
parent3c00d49cf59e3eb6e83ddc5dc7219c786cc49258 (diff)
downloadfreebsd-ports-gnome-03a79b5efb8f1d4c2ab1468cb214fe3bb33d78ad.tar.gz
freebsd-ports-gnome-03a79b5efb8f1d4c2ab1468cb214fe3bb33d78ad.tar.zst
freebsd-ports-gnome-03a79b5efb8f1d4c2ab1468cb214fe3bb33d78ad.zip
Add an mtree line to the install target.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index b0daf9e63ced..716d824ab61d 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.151 1995/04/28 15:40:37 jkh Exp $
+# $Id: bsd.port.mk,v 1.152 1995/04/30 12:28:43 asami Exp $
#
# Please view me with 4 column tabs!
@@ -237,6 +237,8 @@ EXTRACT_BEFORE_ARGS?= -xzf
.if !defined(MTREE_LOCAL) && exists(/etc/mtree/BSD.local.dist)
MTREE_LOCAL= /etc/mtree/BSD.local.dist
.endif
+MTREE_CMD?= mtree
+MTREE_ARGS?= -U -f ${MTREE_LOCAL} -d -e -p
PKG_CMD?= pkg_create
.if !defined(PKG_ARGS)
@@ -731,6 +733,9 @@ install: build ${INSTALL_COOKIE}
${INSTALL_COOKIE}:
@${ECHO_MSG} "===> Installing for ${PKGNAME}"
+.if !defined(USE_X11) && !defined(USE_IMAKE) && defined(MTREE_LOCAL)
+ ${MTREE_CMD} ${MTREE_ARGS} ${PREFIX}/;
+.endif
.if target(pre-install)
@${MAKE} ${.MAKEFLAGS} pre-install
.endif