Annotation of researchv10no/cmd/learn/makefile, revision 1.1.1.1

1.1       root        1: LESSONS = files editor morefiles macros eqn C
                      2: 
                      3: FILES = lrndef lrnref \
                      4:        copy.c dounit.c learn.c list.c \
                      5:        makpipe.c maktee.c mem.c mysys.c selsub.c selunit.c \
                      6:        start.c whatnow.c wrapup.c \
                      7:        lcount.c tee.c makefile
                      8: 
                      9: OBJECTS = copy.o dounit.o learn.o list.o mem.o \
                     10:        makpipe.o maktee.o mysys.o selsub.o selunit.o \
                     11:        start.o whatnow.o wrapup.o
                     12: 
                     13: CFLAGS = -O
                     14: LIBRARY =
                     15: LLIB   = /usr/lib/learn
                     16: 
                     17: a.out: $(OBJECTS)
                     18:        cc -n $(CFLAGS) $(OBJECTS) $(LIBRARY)
                     19: 
                     20: $(OBJECTS): lrnref
                     21: learn.o: lrndef
                     22: 
                     23: list:
                     24:        pr $(FILES) ../README
                     25: 
                     26: bin:
                     27:        cp a.out /usr/bin/learn
                     28:        strip /usr/bin/learn
                     29: 
                     30: lcount tee:
                     31:        cc $(CFLAGS) -s [email protected] -o $(LLIB)/$@ $(LIBRARY)
                     32: 
                     33: lessons:       $(LESSONS)
                     34: 
                     35: play log:
                     36:        -rm -r $(LLIB)/$@; mkdir $(LLIB)/$@; chmod +w $(LLIB)/$@
                     37: 
                     38: $(LESSONS):
                     39:        -rm -r $(LLIB)/$@
                     40:        mkdir $(LLIB)/$@
                     41:        (cd $(LLIB)/$@; ar x ../[email protected])
                     42: 
                     43: all:   a.out bin tee lcount lessons play log check
                     44: 
                     45: archives:
                     46:        (cd $(LLIB)/files; ar r ../files.a L*)
                     47:        (cd $(LLIB)/morefiles; ar r ../morefiles.a L*)
                     48:        (cd $(LLIB)/editor; ar r ../editor.a L*)
                     49:        (cd $(LLIB)/macros; ar r ../macros.a L*)
                     50:        (cd $(LLIB)/eqn; ar r ../eqn.a L* tinyms Init)
                     51:        (cd $(LLIB)/C; ar r ../C.a L* get*)
                     52: 
                     53: export:
                     54:        : make the directories
                     55:        mkdir export export/source export/lib
                     56:        : copy source files
                     57:        -cp $(FILES) export/source
                     58:        -cp ../README export
                     59:        : non-directories in lib
                     60:        -for i in $(LLIB)/*;\
                     61:        do if test -f $$i; then cp $$i export/lib; fi;\
                     62:        done
                     63: 
                     64: check:
                     65:        -@test -r $(LLIB)/tee || echo 'tee not present; make tee'
                     66:        -@test -r $(LLIB)/lcount || echo 'lcount not present; make lcount'
                     67:        -@test -r $(LLIB)/play || echo 'play directory not present; make play'
                     68:        -@test -r $(LLIB)/log || echo 'log directory not present; make log'
                     69:        -@for i in $(LESSONS); do test -r $(LLIB)/$$i/L0 || echo $$i not unarchived, make $$i; done
                     70: 
                     71: clean:
                     72:        rm *.o a.out

unix.superglobalmegacorp.com

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