Annotation of 43BSD/usr.bin/find/Makefile, revision 1.1.1.1

1.1       root        1: #      @(#)Makefile    4.3     (Berkeley)      85/06/01
                      2: #
                      3: DESTDIR=
                      4: CFLAGS=        -O
                      5: LFLAGS=        
                      6: 
                      7: # The programs themselves
                      8: #
                      9: PROG=  find
                     10: LIBS=  bigram code
                     11: 
                     12: # Sources
                     13: #
                     14: SRCS=  find.c bigram.c code.c
                     15: 
                     16: all: ${PROG} ${LIBS}
                     17: 
                     18: find: find.c
                     19:        cc ${CFLAGS} -o find find.c
                     20: 
                     21: bigram: bigram.c
                     22:        cc ${CFLAGS} -o bigram bigram.c
                     23: 
                     24: code: code.c
                     25:        cc ${CFLAGS} -o code code.c
                     26: 
                     27: install: ${PROG} ${LIBS}
                     28:        install -s ${PROG} ${DESTDIR}/usr/bin/${PROG}
                     29:        -mkdir ${DESTDIR}/usr/lib/find
                     30:        install -s bigram ${DESTDIR}/usr/lib/find/bigram
                     31:        install -s code ${DESTDIR}/usr/lib/find/code
                     32:        install -c -m 755 updatedb.csh ${DESTDIR}/usr/lib/find/updatedb
                     33: 
                     34: clean:
                     35:        rm -f a.out core ${LIBS} ${PROG}
                     36: 
                     37: depend:
                     38:        cat </dev/null >x.c
                     39:        for i in ${SRCS}; do \
                     40:                (echo `basename $$i .c`.o: $$i >>makedep; \
                     41:                /bin/grep '^#[  ]*include' x.c $$i | sed \
                     42:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
                     43:                        -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
                     44:                        -e 's/\.c/.o/' >>makedep); done
                     45:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                     46:        echo '$$r makedep' >>eddep
                     47:        echo 'w' >>eddep
                     48:        cp Makefile Makefile.bak
                     49:        ed - Makefile < eddep
                     50:        rm eddep makedep x.c
                     51:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                     52:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                     53:        echo '# see make depend above' >> Makefile
                     54: 
                     55: # DO NOT DELETE THIS LINE -- make depend uses it
                     56: 
                     57: find.o: find.c
                     58: find.o: /usr/include/stdio.h
                     59: find.o: /usr/include/sys/param.h
                     60: find.o: /usr/include/sys/dir.h
                     61: find.o: /usr/include/sys/stat.h
                     62: find.o: /usr/include/signal.h
                     63: bigram.o: bigram.c
                     64: bigram.o: /usr/include/stdio.h
                     65: code.o: code.c
                     66: code.o: /usr/include/stdio.h
                     67: # DEPENDENCIES MUST END AT END OF FILE
                     68: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                     69: # see make depend above

unix.superglobalmegacorp.com

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