mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
Use relative symlinks so they work even when ${DESTDIR} is not empty.
Reviewed by: jkh, bde
This commit is contained in:
parent
c7c8de5af6
commit
84f21d2d49
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user