Annotation of cci/usr/src/usr.bin/learn/Makefile, revision 1.1.1.1

1.1       root        1: #      @(#)Makefile    4.3     (Berkeley)      83/06/19
                      2: #
                      3: 
                      4: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
                      5: DESTDIR=
                      6: 
                      7: LESSONS = files editor morefiles macros eqn C
                      8: 
                      9: FILES = lrnref.h \
                     10:        copy.c dounit.c getlesson.c learn.c list.c \
                     11:        makpipe.c maktee.c mem.c mysys.c selsub.c selunit.c \
                     12:        start.c whatnow.c wrapup.c \
                     13:        lcount.c lrntee.c \
                     14:        makefile
                     15: 
                     16: OBJECTS = copy.o dounit.o getlesson.o learn.o list.o mem.o \
                     17:        makpipe.o maktee.o mysys.o selsub.o selunit.o \
                     18:        start.o whatnow.o wrapup.o
                     19: 
                     20: CFLAGS = -O
                     21: LIBRARY =
                     22: LLIB   = $(DESTDIR)/usr/lib/learn/bin
                     23: 
                     24: all:   learn lrntee lcount
                     25: 
                     26: install:       all
                     27:        install -c -s learn $(DESTDIR)/usr/bin
                     28:        install -s learn $(LLIB)
                     29:        install -s lrntee $(LLIB)
                     30:        install -s lcount $(LLIB)
                     31: 
                     32: ccinstall:     all
                     33:        cp learn lrntee lcount $(LLIB)
                     34:        chmod 755 $(LLIB)/*
                     35:        strip $(LLIB)/*
                     36: 
                     37: clean:
                     38:        rm -f *.o learn lrntee lcount errs
                     39:        
                     40: cleansrc:
                     41:        rm -f *.[ch] Makefile
                     42: 
                     43: cmp:   all
                     44:        cmp learn $(DESTDIR)/usr/bin/learn
                     45:        cmp learn $(LLIB)/learn
                     46:        cmp lrntee $(LLIB)/lrntee
                     47:        cmp lcount $(LLIB)/lcount
                     48:        rm learn lrntee lcount *.o
                     49: 
                     50: learn: $(OBJECTS)
                     51:        ${CC} -o learn $(CFLAGS) $(OBJECTS) $(LIBRARY)
                     52: 
                     53: $(OBJECTS): lrnref.h
                     54: 
                     55: lcount lrntee:
                     56:        ${CC} $(CFLAGS) [email protected] -o $@ $(LIBRARY)
                     57: 
                     58: log:
                     59:        -rm -r $(LLIB)/../log; mkdir $(LLIB)/../log; chmod +w $(LLIB)/../log
                     60: 
                     61: check:
                     62:        -@test -r $(LLIB)/lrntee || echo 'lrntee not present; make  lrntee'
                     63:        -@test -r $(LLIB)/lcount || echo 'lcount not present; make  lcount'
                     64:        -@test -r $(LLIB)/../log || echo 'log directory not present; make  log if you want logging'

unix.superglobalmegacorp.com

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