Annotation of 43BSDTahoe/include/Makefile.install, revision 1.1.1.1

1.1       root        1: #
                      2: # Copyright (c) 1983,1986 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.install    5.4 (Berkeley) 1/17/88
                      7: #
                      8: # Makefile for /usr/include, used to convert system include subdirectories
                      9: # between symbolic links and copies of kernel headers.
                     10: # May also be used to update copies from kernel header files.
                     11: #
                     12: # The ``rm -rf''s used below are safe because rm doesn't
                     13: # follow symbolic links.
                     14: #
                     15: DESTDIR=
                     16: MACHDEP.vax=   vaxif vaxmba vaxuba
                     17: MACHDEP.tahoe= tahoeif tahoevba
                     18: NETDIRS=       net netimp netinet netns
                     19: SYSDIRS=       ${NETDIRS} ${MACHINE}
                     20: SYS=/sys
                     21: 
                     22: all:
                     23:        @echo "\"make symlinks\", \"make copies\", or \"make update\" only"
                     24:        @false
                     25: 
                     26: symlinks: symlinks.${MACHINE}
                     27:        for i in ${SYSDIRS}; do \
                     28:                rm -rf $$i; \
                     29:                ln -s ${SYS}/$$i $$i; \
                     30:        done
                     31:        rm -rf sys machine
                     32:        ln -s ${SYS}/h sys
                     33:        ln -s ${MACHINE} machine
                     34: 
                     35: symlinks.vax:
                     36:        for i in ${MACHDEP.vax}; do \
                     37:                rm -rf $$i; \
                     38:                ln -s ${SYS}/$$i $$i; \
                     39:        done
                     40: 
                     41: symlinks.tahoe:
                     42:        for i in ${MACHDEP.tahoe}; do \
                     43:                rm -rf $$i; \
                     44:                ln -s ${SYS}/$$i $$i; \
                     45:        done
                     46: 
                     47: copies: copies.${MACHINE}
                     48:        -for i in ${SYSDIRS}; do \
                     49:                rm -rf $$i; \
                     50:                (cd ${SYS}; tar cf - $$i/*.h) | tar xpfB -; \
                     51:        done
                     52:        rm -rf sys;
                     53:        mkdir sys; 
                     54:        chmod 775 sys;
                     55:        -(cd ${SYS}/h; tar cf - *.h) | (cd sys; tar xpfB -)
                     56:        rm -f machine
                     57:        ln -s ${MACHINE} machine
                     58: 
                     59: copies.vax:
                     60:        -for i in ${MACHDEP.vax}; do \
                     61:                rm -rf $$i; \
                     62:                (cd ${SYS}; tar cf - $$i/*.h) | tar xpfB -; \
                     63:        done
                     64: 
                     65: copies.tahoe:
                     66:        -for i in ${MACHDEP.tahoe}; do \
                     67:                rm -rf $$i; \
                     68:                (cd ${SYS}; tar cf - $$i/*.h) | tar xpfB -; \
                     69:        done
                     70: 
                     71: update: update.${MACHINE}
                     72:        -for i in ${SYSDIRS}; do \
                     73:                if [ ! -d $$i ]; \
                     74:                then \
                     75:                        mkdir $$i; \
                     76:                fi; \
                     77:                for j in `cd ${SYS}/$$i; echo *.[ih]`; do \
                     78:                        cmp -s ${SYS}/$$i/$$j $$i/$$j || \
                     79:                        install -c -m 444 ${SYS}/$$i/$$j $$i/$$j; \
                     80:                done; \
                     81:        done
                     82:        for j in `cd ${SYS}/h; echo *.[ih]`; do \
                     83:                cmp -s ${SYS}/h/$$j sys/$$j || \
                     84:                { echo "install -c -m 444 ${SYS}/h/$$j sys/$$j"; \
                     85:                install -c -m 444 ${SYS}/h/$$j sys/$$j; } \
                     86:        done;
                     87:        rm -f machine
                     88:        ln -s ${MACHINE} machine
                     89: 
                     90: update.vax:
                     91:        -for i in ${MACHDEP.vax}; do \
                     92:                if [ ! -d $$i ]; \
                     93:                then \
                     94:                        mkdir $$i; \
                     95:                fi; \
                     96:                for j in `cd ${SYS}/$$i; echo *.[ih]`; do \
                     97:                        cmp -s ${SYS}/$$i/$$j $$i/$$j || \
                     98:                        install -c -m 444 ${SYS}/$$i/$$j $$i/$$j; \
                     99:                done; \
                    100:        done
                    101: 
                    102: update.tahoe:
                    103:        -for i in ${MACHDEP.tahoe}; do \
                    104:                if [ ! -d $$i ]; \
                    105:                then \
                    106:                        mkdir $$i; \
                    107:                fi; \
                    108:                for j in `cd ${SYS}/$$i; echo *.[ih]`; do \
                    109:                        cmp -s ${SYS}/$$i/$$j $$i/$$j || \
                    110:                        install -c -m 444 ${SYS}/$$i/$$j $$i/$$j; \
                    111:                done; \
                    112:        done

unix.superglobalmegacorp.com

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