Sync usage with man page.
[netbsd-mini2440.git] / share / doc / iso / wisc / Makefile
blob6a327cc7dcf39857c326bcfe155685cb5f0f1a72
1 # $NetBSD: Makefile,v 1.5 2008/10/19 22:05:20 apb Exp $
3 # Makefile for the tp documents:
4 # design: TP design/source guide
5 # appendix_a: index of tp kernel routines & macros by macro/routine name
6 # appendix_b: index of tp kernel routines & macros by file name
8 PRINTER = 3a
9 TAGS = ../../sys/tags
10 SRCS = ../../sys/netargo/tp_*.c ../../sys/netargo/tp_*.h ../../sys/netargo/tp*.trans
11 TROFF = groff -Z
14 # Print via speedy for cycles sake...
15 # (assumes postscript printer...)
17 program:
18 @echo printer is $(PRINTER)
19 (cd figs; ${MAKE})
20 format -P$(PRINTER) -t program.nr | rsh speedy psdit \| lpr -P$(PRINTER)
22 parts:
23 @echo printer is $(PRINTER)
24 (cd figs; ${MAKE})
25 format -P$(PRINTER) -t parts.nr | rsh speedy psdit \| lpr -P$(PRINTER)
26 # format -P$(PRINTER) -t parts.nr > /dev/null
27 # soelim parts.nr | grn -P$(PRINTER) |\
28 # $(TROFF) -Tpsc | rsh speedy psdit \> /tmp/test
29 # soelim parts.nr | tbl > /tmp/parts.nr
31 clean:
32 /bin/rm -f core junk* a.out *.o spell_errs made
33 touch spell_errs
35 spell:
36 (cd figs; ${MAKE})
37 (cd ../icon; ${MAKE})
38 /usr/ucb/soelim program.nr | /usr/bin/spell -d hlista > spell_errs
40 newdict:
41 cat spell_errs | spellin /usr/dict/hlista > hlista
43 all: program appendix_a appendix_b appendix_c
46 appendix_c:
47 format -P$(PRINTER) appendix_c.nr
48 tbl ../man/man4/table1.src > ../man/man4/table1.nr
49 tbl ../man/man4/table2.src > ../man/man4/table2.nr
50 tbl ../man/man4/table3.src > ../man/man4/table3.nr
51 soelim ../man/man4/tp.4p.src > ../man/man4/tp.4p
52 ditroff -man -P$(PRINTER) ../man/man1/xebec.1
53 ditroff -man -P$(PRINTER) ../man/man2/sendv.2
54 ditroff -man -P$(PRINTER) ../man/man2/recvv.2
55 ditroff -man -P$(PRINTER) ../man/man3/libtp.3
56 ditroff -man -P$(PRINTER) ../man/man4/tp.4p
57 ditroff -man -P$(PRINTER) ../man/man8/tppt.8
58 ditroff -man -P$(PRINTER) ../man/man8/tpdebug.8
59 ditroff -man -P$(PRINTER) ../man/man8/tpstat.8
61 appendix_a:
62 ctags -x $(SRCS) \
63 | ${TOOL_AWK} '{printf("%s\t%s\t%s\n", $$1, $$3, $$2)}' \
64 | ${TOOL_SED} -e 's-../../sys/netargo/--' > index_by_func.nr
65 format -P$(PRINTER) appendix_a.nr
67 appendix_b:
68 ctags -x $(SRCS) \
69 | ${TOOL_AWK} '{printf("%s\t%s\t%s\n", $$3, $$1, $$2)}' \
70 | ${TOOL_SED} -e 's-../../sys/netargo/--' \
71 | sort \
72 | fmtxref -w 80 \
73 | ${TOOL_SED} \
74 -e 's/ / /' \
75 -e 's/ / /' \
76 > index_by_file.nr
77 format -P$(PRINTER) appendix_b.nr