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

Reviewed by:	jkh, bde
This commit is contained in:
Satoshi Asami 1997-07-31 11:32:25 +00:00
parent dd9346ce01
commit 3b29be9bb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27803

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>