|
|
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 \
8: makefile
9:
10: OBJECTS = copy.o dounit.o learn.o list.o mem.o \
11: makpipe.o maktee.o mysys.o selsub.o selunit.o \
12: start.o whatnow.o wrapup.o
13:
14: CFLAGS = -O
15: LIBRARY =
16: LLIB = $(DESTDIR)/usr/lib/learn
17:
18: all: learn tee lcount
19:
20: install: all
21: install -s learn $(DESTDIR)/usr/bin
22: install -s tee $(LLIB)
23: install -s lcount $(LLIB)
24: rm *.o
25: @echo "Now do 'make lessons' if you need to extract the lesson archives"
26: @echo "Then do 'make play; make log' to make playpen and log directories"
27:
28: cmp: all
29: cmp learn /bin/learn
30: cmp tee $(LLIB)/tee
31: cmp lcount $(LLIB)/lcount
32: rm learn tee lcount *.o
33:
34: learn: $(OBJECTS)
35: cc -o learn $(CFLAGS) $(OBJECTS) $(LIBRARY)
36:
37: $(OBJECTS): lrnref
38: learn.o: lrndef
39:
40: lcount tee:
41: cc $(CFLAGS) [email protected] -o $@ $(LIBRARY)
42:
43: lessons: $(LESSONS)
44:
45: $(LESSONS):
46: -rm -r $(LLIB)/$@
47: mkdir $(LLIB)/$@
48: (cd $(LLIB)/$@; ar x ../[email protected])
49:
50: play log:
51: -rm -r $(LLIB)/$@; mkdir $(LLIB)/$@; chmod +w $(LLIB)/$@
52:
53: check:
54: -@test -r $(LLIB)/tee || echo 'tee not present; make tee'
55: -@test -r $(LLIB)/lcount || echo 'lcount not present; make lcount'
56: -@test -r $(LLIB)/play || echo 'play directory not present; make play'
57: -@test -r $(LLIB)/log || echo 'log directory not present; make log'
58: -@for i in $(LESSONS); do test -r $(LLIB)/$$i/L0 || echo $$i not unarchived, make $$i; done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.