Commit | Line | Data |
---|---|---|
4270a135 SL |
1 | # Makefile 4.1 83/08/05 |
2 | # | |
3 | # Possible options: | |
4 | # make compile source for terminal tables below | |
5 | # make <term> compile table for a specific <term> | |
6 | # make install move tables to ${DEST} | |
7 | # make links make links for ease of documentation | |
8 | # make clean remove tab*.o files lying around | |
9 | ALL= 37 lpr 300 300-12 302 302-12 382 382-12 450 450-12 833 833-12 \ | |
10 | itoh itoh12 nec nec12 nec-t qume qume12 xerox xerox12 \ | |
11 | x-ecs x-ecs12 | |
12 | DESTDIR= | |
13 | DEST= ${DESTDIR}/usr/lib/term | |
14 | ||
15 | all: ${ALL} | |
16 | ||
17 | 37: tab37.o | |
18 | lpr: tablpr.o | |
19 | 300: tab300.o code.300 | |
20 | 300-12: tab300-12.o code.300 | |
21 | 302: tab302.o code.300 | |
22 | 302-12: tab302-12.o code.300 | |
23 | 382: tab382.o code.300 | |
24 | 382-12: tab382-12.o code.300 | |
25 | 450: tab450.o code.300 | |
26 | 450-12: tab450-12.o code.300 | |
27 | 833: tab833.o code.aj833 | |
28 | 833-12: tab833-12.o code.aj833 | |
29 | itoh: tabitoh.o code.itoh | |
30 | itoh12: tabitoh12.o code.itoh | |
31 | nec: tabnec.o code.nec | |
32 | nec12: tabnec12.o code.nec | |
33 | nec-t: tabnec-t.o | |
34 | qume: tabqume.o | |
35 | qume12: tabqume12.o | |
36 | xerox: tabxerox.o code.xerox | |
37 | xerox12:tabxerox12.o code.xerox | |
38 | x-ecs: tabx-ecs.o code.x-ecs | |
39 | x-ecs12:tabx-ecs12.o code.x-ecs | |
40 | ||
41 | install: | |
42 | for file in tab*.o; do \ | |
43 | install -s -m 755 $$file ${DEST}/`basename $$file .o`;\ | |
44 | done | |
45 | if test ! -f ${DEST}/tabtn300; \ | |
46 | then \ | |
47 | make links; \ | |
48 | fi | |
49 | install -c -m 644 README ${DEST}/README | |
50 | ||
51 | links: | |
52 | rm -f ${DEST}/tabtn300; ln ${DEST}/tablpr ${DEST}/tabtn300 | |
53 | rm -f ${DEST}/tabcrt; ln ${DEST}/tablpr ${DEST}/tabcrt | |
54 | rm -f ${DEST}/tab300s; ln ${DEST}/tab302 ${DEST}/tab300s | |
55 | rm -f ${DEST}/tab300s-12; ln ${DEST}/tab302-12 ${DEST}/tab300s-12 | |
56 | rm -f ${DEST}/tabdtc; ln ${DEST}/tab302 ${DEST}/tabdtc | |
57 | rm -f ${DEST}/tabdtc12; ln ${DEST}/tab302-12 ${DEST}/tabdtc12 | |
58 | rm -f ${DEST}/tabipsi; ln ${DEST}/tab450 ${DEST}/tabipsi | |
59 | rm -f ${DEST}/tabipsi12; ln ${DEST}/tab450-12 ${DEST}/tabipsi12 | |
60 | ||
61 | clean: | |
62 | rm -f tab*.o errs |