Annotation of 43BSD/usr.bin/learn/Makefile, revision 1.1

1.1     ! root        1: #      @(#)Makefile    4.4     (Berkeley)      86/05/15
        !             2: #
        !             3: DESTDIR=
        !             4: 
        !             5: # The vi lessons come with the user-contributed software.
        !             6: LESSONS = files editor morefiles macros eqn C
        !             7: 
        !             8: FILES = lrnref.h \
        !             9:        copy.c dounit.c getlesson.c learn.c list.c \
        !            10:        makpipe.c maktee.c mem.c mysys.c selsub.c selunit.c \
        !            11:        start.c whatnow.c wrapup.c \
        !            12:        lcount.c lrntee.c \
        !            13:        makefile
        !            14: 
        !            15: OBJECTS = copy.o dounit.o getlesson.o learn.o list.o mem.o \
        !            16:        makpipe.o maktee.o mysys.o selsub.o selunit.o \
        !            17:        start.o whatnow.o wrapup.o
        !            18: 
        !            19: # Flag BSD4_2 means 4.2 or later.
        !            20: CFLAGS = -O -DBSD4_2
        !            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: clean:
        !            33:        rm -f *.o learn lrntee lcount errs
        !            34: 
        !            35: cmp:   all
        !            36:        cmp learn $(DESTDIR)/usr/bin/learn
        !            37:        cmp learn $(LLIB)/learn
        !            38:        cmp lrntee $(LLIB)/lrntee
        !            39:        cmp lcount $(LLIB)/lcount
        !            40:        rm learn lrntee lcount *.o
        !            41: 
        !            42: learn: $(OBJECTS)
        !            43:        cc -o learn $(CFLAGS) $(OBJECTS) $(LIBRARY)
        !            44: 
        !            45: $(OBJECTS): lrnref.h
        !            46: 
        !            47: lcount lrntee:
        !            48:        cc $(CFLAGS) [email protected] -o $@ $(LIBRARY)
        !            49: 
        !            50: log:
        !            51:        -rm -r $(LLIB)/../log; mkdir $(LLIB)/../log; chmod +w $(LLIB)/../log
        !            52: 
        !            53: check:
        !            54:        -@test -r $(LLIB)/lrntee || echo 'lrntee not present; make lrntee'
        !            55:        -@test -r $(LLIB)/lcount || echo 'lcount not present; make lcount'
        !            56:        -@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.