summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-05-28 12:31:42 +0000
committerpeter <peter@FreeBSD.org>1998-05-28 12:31:42 +0000
commitc31bdd1317fdea748f1700a97c3c766cc7976273 (patch)
tree5f52bb875c26f02563d91fed9abf3743ca6955bc /Makefile
parentd3d65c6b2e376ac074f3ca386b6f5b70ea37636f (diff)
downloadFreeBSD-src-c31bdd1317fdea748f1700a97c3c766cc7976273.zip
FreeBSD-src-c31bdd1317fdea748f1700a97c3c766cc7976273.tar.gz
Urgent fix for bootstrap target. If the old symlinks are pointing to the
real source tree, the bootstrap target would attempt have cpio copy the files over themselves, unlinking them first. I think this only happened with make -DNOCLEAN world at the transition between a symlinked objdir/tmp/usr/include/{sys,net,..} and real files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 72f723b..0badf77 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.184 1998/05/27 16:33:43 peter Exp $
+# $Id: Makefile,v 1.185 1998/05/27 18:50:01 peter Exp $
#
# While porting to the another architecture include the bootstrap instead
# of the normal build.
@@ -470,12 +470,14 @@ bootstrap:
rm -f ${DESTDIR}/usr/src/sys
ln -s ${.CURDIR}/sys ${DESTDIR}/usr/src
cd ${.CURDIR}/include; find -dx . | cpio -dump ${DESTDIR}/usr/include
+.for d in net netinet posix4 sys vm machine
+ if [ -h ${DESTDIR}/usr/include/$d ]; then \
+ rm -f ${DESTDIR}/usr/include/$d ; \
+ fi
+.endfor
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
OpenPOWER on IntegriCloud