Only install backwards compat symlink for <machine/soundcard.h> if using

the default SHARED=copies, otherwise the kernel source tree gets modified
if /usr/include/machine is a symlink to the source tree (which is not the
case by default).  Nothing in our src tree uses <machine/soundcard.h>.

Pointed out by:	bde
This commit is contained in:
Peter Wemm 1999-09-05 07:58:28 +00:00
parent 32d1ebac77
commit c08e808e2a

View File

@ -33,9 +33,9 @@ RPCFILES= auth.h auth_unix.h clnt.h pmap_clnt.h pmap_prot.h pmap_rmt.h \
MFILES= float.h floatingpoint.h stdarg.h varargs.h
# posix4/aio.h conflicts with dysons and isn't installed:
PFILES= mqueue.h sched.h semaphore.h \
# aio.h
PFILES= mqueue.h sched.h semaphore.h # aio.h
# Only for default SHARED=copies case
SFILES= soundcard.h
LFILES= aio.h errno.h fcntl.h inttypes.h linker_set.h poll.h syslog.h termios.h
@ -90,9 +90,6 @@ beforeinstall: ${SHARED}
.for i in ${PFILES}
ln -sf posix4/$i ${DESTDIR}/usr/include/$i
.endfor
.for i in ${SFILES}
ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i
.endfor
copies:
.for i in ${LDIRS} ${LNOHEADERDIRS} machine
@ -112,6 +109,9 @@ copies:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
${DESTDIR}/usr/include/machine
.endif
.for i in ${SFILES}
ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i
.endfor
symlinks:
@${ECHO} "Setting up symlinks to kernel source tree..."