summaryrefslogtreecommitdiffstats
path: root/share/man/man0/Makefile
blob: f612c8eb25bb3b13abbaa9cdef167fbacf06b505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Copyright (c) 1986, 1993 Regents of the University of California.
# All rights reserved.
#
#	From: @(#)Makefile	8.2 (Berkeley) 1/29/94
#	$Id$
#
SRCS=	man1 man2 man3 man4 man5 man6 man7 man8

MACROS=	-ms
PRINTER=ps
TBL=	tbl
TROFF=	groff

all: title.urm.${PRINTER} title.prm.${PRINTER}

print: title.urm.${PRINTER} title.prm.${PRINTER}
	lpr -${PRINTER} title.urm.${PRINTER}
	lpr -${PRINTER} title.prm.${PRINTER}

title.urm.${PRINTER}: title.urm ptxx
	${TBL} title.urm | ${TROFF} ${MACROS} >title.urm.${PRINTER}

title.prm.${PRINTER}: ${SRCS} title.prm ptxx
	${TROFF} title.prm >title.prm.${PRINTER}

ptxx:
	./tocrc

man1pages: man1
	rm -f man1.out
	for i in `cat man1`; do \
		sed -f groff.sed $$i | groff -man >>man1pages; \
	done;

man2pages: man2
	rm -f man2.out
	for i in `cat man2`; do groff -man $$i >>man2pages; done;

man3pages: man3
	rm -f man3.out
	for i in `cat man3`; do groff -man $$i >>man3pages; done;

man4pages: man4
	rm -f man4.out
	for i in `cat man4`; do groff -man $$i >>man4pages; done;

man5pages: man5
	rm -f man5.out
	for i in `cat man5`; do \
		sed -f groff.sed $$i | groff -man >>man5pages; \
	done;

man6pages: man6
	rm -f man6.out
	for i in `cat man6`; do groff -man $$i >>man6pages; done;

man7pages: man7
	rm -f man7.out
	for i in `cat man7`; do \
		sed -f groff.sed $$i | groff -man >>man7pages; \
	done;

man8pages: man8
	rm -f man8.out
	for i in `cat man8`; do groff -man $$i >>man8pages; done;

clean:
	rm -f title.urm.${PRINTER} title.prm.${PRINTER} toc? tocx? ptxx \
		*.spell errs Errs make.out
OpenPOWER on IntegriCloud