Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2012 11:52:03 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 216529 for review
Message-ID:  <201208261152.q7QBq3SD044713@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@216529?ac=10

Change 216529 by brooks@brooks_zenith on 2012/08/26 11:51:41

	Add a LOCAL_MTREE variable to Makefile.inc1 to allow things built
	by LOCAL_*_DIRS to install things in directories not in the base
	hierarchy without resorting to gross hacks.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/Makefile.inc1#6 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/Makefile.inc1#6 (text+ko) ====

@@ -388,6 +388,9 @@
 	mtree -deU -f ${.CURDIR}/etc/mtree/BIND.include.dist \
 	    -p ${WORLDTMP}/usr/include >/dev/null
 .endif
+.for _mtree in ${LOCAL_MTREE}
+	mtree -deU -f ${.CURDIR}/${_mtree} -p ${WORLDTMP} > /dev/null
+.endfor
 _legacy:
 	@echo
 	@echo "--------------------------------------------------------------"
@@ -1199,6 +1202,10 @@
 #
 hierarchy hier:
 	cd ${.CURDIR}/etc;		${MAKE} distrib-dirs
+.for _mtree in ${LOCAL_MTREE}
+	mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/${_mtree} \
+	    -p ${DESTDIR}/
+.endfor
 
 #
 # libraries - build all libraries, and install them under ${DESTDIR}.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208261152.q7QBq3SD044713>