Annotation of 43BSD/include/Makefile, revision 1.1

1.1     ! root        1: #
        !             2: # Copyright (c) 1980 Regents of the University of California.
        !             3: # All rights reserved.  The Berkeley software License Agreement
        !             4: # specifies the terms and conditions for redistribution.
        !             5: #
        !             6: #      @(#)Makefile    5.14 (Berkeley) 86/05/28
        !             7: #
        !             8: # Doing a make install builds /usr/include
        !             9: #
        !            10: # Define SHARED to indicate whether you want
        !            11: # symbolic links to the system source (``symlinks''),
        !            12: # or a separate copy (``copies'').
        !            13: # (latter useful in environments where it's
        !            14: # not possible to keep /sys publicly readable)
        !            15: #
        !            16: # The ``rm -rf''s used below are safe because rm doesn't
        !            17: # follow symbolic links.
        !            18: #
        !            19: DESTDIR=
        !            20: SUBDIRS=arpa pascal protocols
        !            21: STD=   a.out.h ar.h assert.h ctype.h curses.h ndbm.h disktab.h \
        !            22:        fcntl.h fstab.h grp.h lastlog.h math.h memory.h mp.h mtab.h \
        !            23:        netdb.h nlist.h pcc.h pwd.h ranlib.h resolv.h setjmp.h \
        !            24:        sgtty.h stab.h stdio.h string.h strings.h struct.h syscall.h \
        !            25:        sysexits.h time.h ttyent.h utmp.h varargs.h vfont.h
        !            26: LINKS= errno.h signal.h syslog.h
        !            27: MACHINE=vax
        !            28: MACHDEP=${MACHINE} vaxif vaxmba vaxuba
        !            29: NETDIRS=net netimp netinet netns
        !            30: SYSDIRS=${NETDIRS} stand ${MACHDEP}
        !            31: SHARED=        symlinks
        !            32: TAGSFILE=tags
        !            33: 
        !            34: all:
        !            35: 
        !            36: install: ${SHARED}
        !            37:        -for i in ${STD}; do \
        !            38:                cmp -s $$i ${DESTDIR}/usr/include/$$i || \
        !            39:                    install -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
        !            40:        done
        !            41:        -for i in ${SUBDIRS}; do \
        !            42:                if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
        !            43:                then \
        !            44:                        mkdir ${DESTDIR}/usr/include/$$i; \
        !            45:                fi; \
        !            46:                (cd $$i; for j in *.[ih]; do \
        !            47:                        cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
        !            48:                        install -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
        !            49:                done); \
        !            50:        done
        !            51:        -cmp -s Makefile.install ${DESTDIR}/usr/include/Makefile || \
        !            52:            install -c -m 444 Makefile.install ${DESTDIR}/usr/include/Makefile
        !            53:        -for i in ${LINKS}; do \
        !            54:                rm -f ${DESTDIR}/usr/include/$$i; \
        !            55:                ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
        !            56:        done
        !            57:        rm -f ${DESTDIR}/usr/include/machine
        !            58:        ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine
        !            59:        rm -f ${DESTDIR}/usr/include/frame.h
        !            60:        ln -s machine/frame.h ${DESTDIR}/usr/include/frame.h
        !            61: 
        !            62: symlinks:
        !            63:        -for i in ${SYSDIRS}; do \
        !            64:                rm -rf ${DESTDIR}/usr/include/$$i; \
        !            65:                if [ ! -s ${DESTDIR}/usr/include/$$i ]; \
        !            66:                then \
        !            67:                        ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \
        !            68:                else \
        !            69:                        echo ${DESTDIR}/usr/include/$$i not removed; \
        !            70:                fi; \
        !            71:        done
        !            72:        rm -rf ${DESTDIR}/usr/include/sys
        !            73:        -if [ ! -s ${DESTDIR}/usr/include/sys ]; \
        !            74:        then \
        !            75:                ln -s /sys/h ${DESTDIR}/usr/include/sys; \
        !            76:        else \
        !            77:                echo ${DESTDIR}/usr/include/sys not removed; \
        !            78:        fi
        !            79: 
        !            80: copies:
        !            81:        -for i in ${SYSDIRS}; do \
        !            82:                rm -rf ${DESTDIR}/usr/include/$$i; \
        !            83:                cd /sys; \
        !            84:                tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \
        !            85:        done
        !            86:        rm -rf ${DESTDIR}/usr/include/sys;
        !            87:        mkdir ${DESTDIR}/usr/include/sys; 
        !            88:        chmod 775 ${DESTDIR}/usr/include/sys;
        !            89:        -(cd /sys/h; tar cf - *.h | (cd ${DESTDIR}/usr/include/sys; tar xpfB -))
        !            90: 
        !            91: tags:
        !            92:        cwd=/usr/include; \
        !            93:        for i in ${STD} ${LINKS}; do \
        !            94:                ctags -a -f ${TAGSFILE} $$cwd/$$i; \
        !            95:        done
        !            96: 
        !            97: clean:
        !            98:        rm -f tags

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.