X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/eb678d52881adeb449cc5bb4966a8c7bca10d6ef..ca67e7b465996afb3821d6a075c4dc6a7f0f5d52:/usr/src/include/Makefile diff --git a/usr/src/include/Makefile b/usr/src/include/Makefile index f93e5b1cdf..1a09697ead 100644 --- a/usr/src/include/Makefile +++ b/usr/src/include/Makefile @@ -3,7 +3,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.7 (Berkeley) 85/08/08 +# @(#)Makefile 5.20 (Berkeley) 88/05/21 # # Doing a make install builds /usr/include # @@ -19,15 +19,15 @@ DESTDIR= SUBDIRS=arpa pascal protocols STD= a.out.h ar.h assert.h ctype.h curses.h ndbm.h disktab.h \ - fcntl.h fstab.h grp.h lastlog.h math.h memory.h mp.h mtab.h nameser.h \ - netdb.h nlist.h pcc.h ptrace.h pwd.h ranlib.h resolv.h setjmp.h \ - sgtty.h stab.h stdio.h string.h strings.h struct.h syscall.h \ - sysexits.h time.h ttyent.h utmp.h varargs.h vfont.h + fcntl.h fstab.h grp.h lastlog.h math.h memory.h mp.h mtab.h \ + netdb.h nlist.h pcc.h pwd.h ranlib.h regexp.h resolv.h setjmp.h \ + sgtty.h stab.h stdio.h string.h strings.h struct.h \ + sysexits.h time.h ttyent.h tzfile.h utmp.h varargs.h vfont.h LINKS= errno.h signal.h syslog.h -MACHINE=vax -MACHDEP=${MACHINE} vaxif vaxmba vaxuba -NETDIRS=net netimp netinet netns -SYSDIRS=${NETDIRS} stand ${MACHDEP} + +NETDIRS= net netimp netinet netns +TAHOEDIRS= tahoe tahoemath tahoevba tahoeif +VAXDIRS= vax vaxmba vaxuba vaxif SHARED= symlinks TAGSFILE=tags @@ -48,6 +48,8 @@ install: ${SHARED} install -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \ done); \ done + -cmp -s Makefile.install ${DESTDIR}/usr/include/Makefile || \ + install -c -m 444 Makefile.install ${DESTDIR}/usr/include/Makefile -for i in ${LINKS}; do \ rm -f ${DESTDIR}/usr/include/$$i; \ ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ @@ -57,24 +59,56 @@ install: ${SHARED} rm -f ${DESTDIR}/usr/include/frame.h ln -s machine/frame.h ${DESTDIR}/usr/include/frame.h -symlinks: - for i in ${SYSDIRS}; do \ +symlinks: ${MACHINE}.symlinks + rm -rf ${DESTDIR}/usr/include/sys + -if [ ! -s ${DESTDIR}/usr/include/sys ]; \ + then \ + ln -s /sys/h ${DESTDIR}/usr/include/sys; \ + else \ + echo ${DESTDIR}/usr/include/sys not removed; \ + fi + +tahoe.symlinks: + -for i in ${NETDIRS} ${TAHOEDIRS}; do \ rm -rf ${DESTDIR}/usr/include/$$i; \ - ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ + if [ ! -s ${DESTDIR}/usr/include/$$i ]; \ + then \ + ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ + else \ + echo ${DESTDIR}/usr/include/$$i not removed; \ + fi; \ done - rm -rf ${DESTDIR}/usr/include/sys - ln -s /sys/h ${DESTDIR}/usr/include/sys -copies: - for i in ${SYSDIRS}; do \ +vax.symlinks: + -for i in ${NETDIRS} ${VAXDIRS}; do \ rm -rf ${DESTDIR}/usr/include/$$i; \ - cd /sys; \ - tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpf -); \ + if [ ! -s ${DESTDIR}/usr/include/$$i ]; \ + then \ + ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ + else \ + echo ${DESTDIR}/usr/include/$$i not removed; \ + fi; \ done + +copies: ${MACHINE}.copies rm -rf ${DESTDIR}/usr/include/sys; mkdir ${DESTDIR}/usr/include/sys; chmod 775 ${DESTDIR}/usr/include/sys; - (cd /sys/h; tar cf - *.h | (cd ${DESTDIR}/usr/include/sys; tar xpf -)) + -(cd /sys/h; tar cf - *.h | (cd ${DESTDIR}/usr/include/sys; tar xpfB -)) + +tahoe.copies: + -for i in ${NETDIRS} ${TAHOEDIRS}; do \ + rm -rf ${DESTDIR}/usr/include/$$i; \ + cd /sys; \ + tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ + done + +vax.copies: + -for i in ${NETDIRS} ${VAXDIRS}; do \ + rm -rf ${DESTDIR}/usr/include/$$i; \ + cd /sys; \ + tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ + done tags: cwd=/usr/include; \ @@ -84,3 +118,5 @@ tags: clean: rm -f tags + +depend: