xref: /original-bsd/old/roff/nroff_term/Makefile (revision 321af20b)
1#	Makefile	4.5	86/04/03
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
9ALL=	37 lpr 300 300-12 302 302-12 382 382-12 450 450-12 833 833-12 \
10	epson itoh itoh12 nec nec12 nec-t nec25-t qume qume12 xerox xerox12 \
11	x-ecs x-ecs12
12DESTDIR=
13DEST=	${DESTDIR}/usr/lib/term
14
15all:	${ALL}
16
1737:	tab37.o
18lpr:	tablpr.o
19300:	tab300.o code.300
20300-12:	tab300-12.o code.300
21302:	tab302.o code.300
22302-12:	tab302-12.o code.300
23382:	tab382.o code.300
24382-12: tab382-12.o code.300
25450:	tab450.o code.300
26450-12:	tab450-12.o code.300
27833:	tab833.o code.aj833
28833-12: tab833-12.o code.aj833
29epson:	tabepson.o
30itoh:	tabitoh.o code.itoh
31itoh12: tabitoh12.o code.itoh
32nec:	tabnec.o code.nec
33nec12:	tabnec12.o code.nec
34nec-t:	tabnec-t.o
35nec25-t:tabnec25-t.o
36qume:	tabqume.o
37qume12:	tabqume12.o
38xerox:	tabxerox.o code.xerox
39xerox12:tabxerox12.o code.xerox
40x-ecs:	tabx-ecs.o code.x-ecs
41x-ecs12:tabx-ecs12.o code.x-ecs
42
43install:
44	for file in tab*.o; do \
45		install -s -m 755 $$file ${DEST}/`basename $$file .o`;\
46	done
47	-if test ! -f ${DEST}/tabtn300; \
48	then \
49		make DESTDIR=${DESTDIR} links; \
50	fi
51	install -c -m 644 README ${DEST}/README
52
53links:
54	rm -f ${DEST}/tabtn300; ln ${DEST}/tablpr ${DEST}/tabtn300
55	rm -f ${DEST}/tabcrt; ln ${DEST}/tablpr ${DEST}/tabcrt
56	rm -f ${DEST}/tab300s; ln ${DEST}/tab302 ${DEST}/tab300s
57	rm -f ${DEST}/tab300s-12; ln ${DEST}/tab302-12 ${DEST}/tab300s-12
58	rm -f ${DEST}/tabdtc; ln ${DEST}/tab302 ${DEST}/tabdtc
59	rm -f ${DEST}/tabdtc12; ln ${DEST}/tab302-12 ${DEST}/tabdtc12
60	rm -f ${DEST}/tabipsi; ln ${DEST}/tab450 ${DEST}/tabipsi
61	rm -f ${DEST}/tabipsi12; ln ${DEST}/tab450-12 ${DEST}/tabipsi12
62
63clean:
64	rm -f tab*.o errs
65