Use relative symlinks so they work even when ${DESTDIR} is not empty.

Reviewed by:	jkh, bde
This commit is contained in:
asami 1997-07-31 11:32:25 +00:00
parent c7c8de5af6
commit 84f21d2d49

View File

@ -1,5 +1,5 @@
# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
# $Id: Makefile,v 1.58 1997/06/05 21:20:58 jkh Exp $
# $Id: Makefile,v 1.59 1997/06/25 08:04:51 msmith Exp $
#
# Doing a make install builds /usr/include
#
@ -109,9 +109,9 @@ symlinks:
@${ECHO} "Setting up symlinks to kernel source tree..."
.for i in ${LDIRS} ${LNOHEADERDIRS}
rm -rf ${DESTDIR}/usr/include/$i
ln -s /sys/$i ${DESTDIR}/usr/include/$i
ln -s ../../sys/$i ${DESTDIR}/usr/include/$i
.endfor
rm -rf ${DESTDIR}/usr/include/machine
ln -s /sys/${MACHINE}/include ${DESTDIR}/usr/include/machine
ln -s ../../sys/${MACHINE}/include ${DESTDIR}/usr/include/machine
.include <bsd.prog.mk>