summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-05-27 18:50:01 +0000
committerpeter <peter@FreeBSD.org>1998-05-27 18:50:01 +0000
commitf9b1d081712f1294cabf5a158fd607832fdf119d (patch)
treeb58036613fd1331073f8594126ddb46e1e1c76f9 /Makefile
parentff9be3e0ff15055bf9ce01f092bca081073a42a0 (diff)
downloadFreeBSD-src-f9b1d081712f1294cabf5a158fd607832fdf119d.zip
FreeBSD-src-f9b1d081712f1294cabf5a158fd607832fdf119d.tar.gz
Replace the partial symlink tree to src/sys/* in $OBJDIR/tmp/usr/include
with real copies. I'm sick of !@#&!^!@#*& mtree chowning directories in my src/sys/* tree after it follows the symlinks. I still believe that mtree is broken for doing this (introduced in mtree.c rev 1.5).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7f2e4c1..72f723b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.183 1998/05/27 15:40:35 peter Exp $
+# $Id: Makefile,v 1.184 1998/05/27 16:33:43 peter Exp $
#
# While porting to the another architecture include the bootstrap instead
# of the normal build.
@@ -294,7 +294,7 @@ buildworld:
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR}/usr/include"
@echo "--------------------------------------------------------------"
- cd ${.CURDIR}; SHARED=symlinks ${BMAKE} includes
+ cd ${.CURDIR}; SHARED=copies ${BMAKE} includes
@echo
@echo "--------------------------------------------------------------"
@echo " Rebuilding bootstrap libraries"
@@ -470,7 +470,15 @@ bootstrap:
rm -f ${DESTDIR}/usr/src/sys
ln -s ${.CURDIR}/sys ${DESTDIR}/usr/src
cd ${.CURDIR}/include; find -dx . | cpio -dump ${DESTDIR}/usr/include
- cd ${.CURDIR}/include; ${MAKE} symlinks
+ cd ${.CURDIR}/sys; \
+ find -dx net netinet posix4 sys vm -name '*.h' -o -type d | \
+ cpio -dump ${DESTDIR}/usr/include
+ if [ -h ${DESTDIR}/usr/include/machine ]; then \
+ rm -f ${DESTDIR}/usr/include/machine; \
+ fi
+ mkdir -p ${DESTDIR}/usr/include/machine
+ cd ${.CURDIR}/sys/i386/include; find -dx . -name '*.h' -o -type d | \
+ cpio -dump ${DESTDIR}/usr/include/machine
.endif
cd ${.CURDIR}/usr.bin/make; ${MAKE} ${MK_FLAGS} ${_DEPEND}; \
${MAKE} ${MK_FLAGS} all; \
@@ -482,6 +490,9 @@ bootstrap:
${MAKE} ${MK_FLAGS} ${_DEPEND}; \
${MAKE} ${MK_FLAGS} -DNOLIB all; \
${MAKE} ${MK_FLAGS} -DNOLIB -B install ${CLEANDIR}
+.if defined(DESTDIR)
+ cd ${.CURDIR}/include && ${MAKE} copies
+.endif
.if !defined(NOOBJDIR)
cd ${.CURDIR}/usr.bin/lex; ${MAKE} ${OBJDIR}
.endif
OpenPOWER on IntegriCloud