xref: /original-bsd/old/roff/nroff_term/Makefile (revision 18f6d767)
1#	Makefile	4.2	83/08/15
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	itoh itoh12 nec nec12 nec-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
29itoh:	tabitoh.o code.itoh
30itoh12: tabitoh12.o code.itoh
31nec:	tabnec.o code.nec
32nec12:	tabnec12.o code.nec
33nec-t:	tabnec-t.o
34qume:	tabqume.o
35qume12:	tabqume12.o
36xerox:	tabxerox.o code.xerox
37xerox12:tabxerox12.o code.xerox
38x-ecs:	tabx-ecs.o code.x-ecs
39x-ecs12:tabx-ecs12.o code.x-ecs
40
41install:
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
51links:
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
61clean:
62	rm -f tab*.o errs
63