date and time created 83/07/01 16:14:31 by root
authorBill Joy <root@ucbvax.Berkeley.EDU>
Sat, 2 Jul 1983 07:14:31 +0000 (23:14 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Sat, 2 Jul 1983 07:14:31 +0000 (23:14 -0800)
SCCS-vsn: include/Makefile 4.1

usr/src/include/Makefile [new file with mode: 0644]

diff --git a/usr/src/include/Makefile b/usr/src/include/Makefile
new file mode 100644 (file)
index 0000000..bab5c02
--- /dev/null
@@ -0,0 +1,71 @@
+#      Makefile        4.1     83/07/01
+#
+# Doing a make install builds /usr/include
+#
+# Define SHARED to indicate whether you want
+# symbolic links to the system source (``symlinks''),
+# or a separate copy (``copies'').
+# (latter useful in environments where it's
+# not possible to keep /sys publicly readable)
+#
+# The ``rm -rf''s used below are safe because rm doesn't
+# follow symbolic links.
+#
+DESTDIR=
+SUBDIRS=arpa
+STD=   a.out.h ar.h assert.h ctype.h curses.h dbm.h \
+       disktab.h dumprestor.h fstab.h getty.h grp.h \
+       lastlog.h math.h mp.h mtab.h netdb.h nlist.h pwd.h ranlib.h \
+       setjmp.h sgtty.h stab.h stdio.h string.h \
+       struct.h syscall.h sysexits.h syslog.h utmp.h varargs.h vfont.h
+LINKS= errno.h signal.h
+MACHINE=vax
+MACHDEP=${MACHINE} vaxif vaxmba vaxuba
+NETDIRS=net netimp netinet netpup
+SYSDIRS=${NETDIRS} stand ${MACHDEP}
+SHARED=        symlinks
+
+all:
+
+install: ${SHARED}
+       -for i in ${STD}; do \
+               install -c -m 644 $$i ${DESTDIR}/usr/include/$$i; \
+       done
+       -for i in ${SUBDIRS}; do \
+               if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
+               then \
+                       mkdir ${DESTDIR}/usr/include/$$i; \
+               fi; \
+               (cd $$i; for j in *.h; do \
+                       install -c -m 644 $$j ${DESTDIR}/usr/include/$$i/$$j; \
+               done); \
+       done
+       -for i in ${LINKS}; do \
+               rm -f ${DESTDIR}/usr/include/$$i; \
+               ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
+       done
+       rm -f ${DESTDIR}/usr/include/machine
+       ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine
+       rm -f ${DESTDIR}/usr/include/frame.h
+       ln -s machine/frame.h ${DESTDIR}/usr/include/frame.h
+
+symlinks:
+       for i in ${SYSDIRS}; do \
+               rm -rf ${DESTDIR}/usr/include/$$i; \
+               ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \
+       done
+       rm -rf ${DESTDIR}/usr/include/sys
+       ln -s /sys/h ${DESTDIR}/usr/include/sys
+
+copies:
+       for i in ${SYSDIRS}; do \
+               rm -rf ${DESTDIR}/usr/include/$$i; \
+               cd /sys; \
+               tar cf - $$i/*.h | (cd /usr/include; tar xpf -); \
+       done
+       rm -rf ${DESTDIR}/usr/include/sys;
+       mkdir ${DESTDIR}/usr/include/sys; 
+       chmod 755 ${DESTDIR}/usr/include/sys;
+       (cd /sys/h; tar cf - *.h | (cd ${DESTDIR}/usr/include/sys; tar xpf -))
+
+clean: