BSD 4_3_Reno release
[unix-history] / usr / src / include / Makefile
index 2361f35..d868360 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    5.31 (Berkeley) %G%
+#      @(#)Makefile    5.39 (Berkeley) 7/1/90
 #
 # Doing a make install builds /usr/include
 #
 #
 # Doing a make install builds /usr/include
 #
@@ -7,18 +7,21 @@
 #
 all clean cleandir depend lint tags:
 
 #
 all clean cleandir depend lint tags:
 
-SUBDIRS=arpa pascal protocols
-STD=   a.out.h ar.h assert.h bitstring.h vis.h ctype.h curses.h ndbm.h \
-       dirent.h disktab.h fcntl.h fstab.h fts.h glob.h grp.h kvm.h limits.h \
+SUBDIRS=arpa protocols
+STD=   a.out.h ar.h assert.h bitstring.h ctype.h ndbm.h \
+       dirent.h disktab.h fstab.h fts.h glob.h grp.h kvm.h limits.h \
        math.h memory.h mp.h netdb.h nlist.h paths.h pcc.h pwd.h ranlib.h \
        math.h memory.h mp.h netdb.h nlist.h paths.h pcc.h pwd.h ranlib.h \
-       regexp.h resolv.h setjmp.h sgtty.h stab.h stdarg.h stdio.h string.h \
-       strings.h struct.h sysexits.h time.h ttyent.h tzfile.h unistd.h \
-       utmp.h varargs.h vfont.h
+       regexp.h resolv.h setjmp.h sgtty.h stab.h stdarg.h stddef.h \
+       stdlib.h stdio.h string.h strings.h struct.h sysexits.h time.h \
+       ttyent.h tzfile.h utmp.h varargs.h vfont.h vis.h
 LMCH=  float.h frame.h
 LMCH=  float.h frame.h
-LSYS=  errno.h signal.h syslog.h termios.h
+LSYS=  errno.h fcntl.h signal.h syslog.h termios.h unistd.h
+NOOBJ= noobj
 
 DIRS=  sys net netimp netinet netiso netns ufs nfs
 
 DIRS=  sys net netimp netinet netiso netns ufs nfs
-.if (${MACHINE} == "tahoe")
+.if   (${MACHINE} == "hp300")
+DIRS+= hp300 hpdev
+.elif (${MACHINE} == "tahoe")
 DIRS+= tahoe tahoemath tahoevba tahoeif
 .elif (${MACHINE} == "vax")
 DIRS+= vax vaxmba vaxuba vaxif
 DIRS+= tahoe tahoemath tahoevba tahoeif
 .elif (${MACHINE} == "vax")
 DIRS+= vax vaxmba vaxuba vaxif
@@ -30,10 +33,12 @@ DIRS+=      vax vaxmba vaxuba vaxif
 # SHARED=      copies
 SHARED=        symlinks
 
 # SHARED=      copies
 SHARED=        symlinks
 
+all include clean cleandir depend lint tags:
+
 install: ${SHARED}
        @echo installing ${STD}
        @-for i in ${STD}; do \
 install: ${SHARED}
        @echo installing ${STD}
        @-for i in ${STD}; do \
-               cmp -s $$i ${DESTDIR}/usr/Xinclude/$$i || \
+               cmp -s $$i ${DESTDIR}/usr/include/$$i || \
                    install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
                    ${DESTDIR}/usr/include/$$i; \
        done
                    install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
                    ${DESTDIR}/usr/include/$$i; \
        done
@@ -46,7 +51,7 @@ install: ${SHARED}
                chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
                chmod 755 ${DESTDIR}/usr/include/$$i; \
                (cd $$i; for j in *.[ih]; do \
                chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
                chmod 755 ${DESTDIR}/usr/include/$$i; \
                (cd $$i; for j in *.[ih]; do \
-                       cmp -s $$j ${DESTDIR}/usr/Xinclude/$$i/$$j || \
+                       cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
                        install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \
                            ${DESTDIR}/usr/include/$$i/$$j; \
                done); \
                        install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \
                            ${DESTDIR}/usr/include/$$i/$$j; \
                done); \
@@ -55,29 +60,39 @@ install: ${SHARED}
            ${DESTDIR}/usr/include/Makefile
        rm -f ${DESTDIR}/usr/include/machine
        ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine
            ${DESTDIR}/usr/include/Makefile
        rm -f ${DESTDIR}/usr/include/machine
        ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine
+       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine;
        @echo installing ${LSYS}
        @-for i in ${LSYS}; do \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
        @echo installing ${LSYS}
        @-for i in ${LSYS}; do \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
        done
        @echo installing ${LMCH}
        @-for i in ${LMCH}; do \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \
        done
        @echo installing ${LMCH}
        @-for i in ${LMCH}; do \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
        done
 
        done
 
+symlinks:
+       @echo installing ${DIRS}
+       @-for i in ${DIRS}; do \
                rm -rf ${DESTDIR}/usr/include/$$i; \
                if [ ! -s ${DESTDIR}/usr/include/$$i ]; \
                then \
                        ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \
                rm -rf ${DESTDIR}/usr/include/$$i; \
                if [ ! -s ${DESTDIR}/usr/include/$$i ]; \
                then \
                        ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \
+                       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
                else \
                        echo ${DESTDIR}/usr/include/$$i not removed; \
                fi; \
        done
 
                else \
                        echo ${DESTDIR}/usr/include/$$i not removed; \
                fi; \
        done
 
+copies:
+       @echo installing ${DIRS}
+       @-for i in ${DIRS}; do \
                rm -rf ${DESTDIR}/usr/include/$$i; \
                cd /sys; \
                tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \
        done
 
                rm -rf ${DESTDIR}/usr/include/$$i; \
                cd /sys; \
                tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \
        done
 
-.include <bsd.own.mk>
+.include <bsd.prog.mk>