]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/iso/wisc/Makefile
BSD 4.4 Lite Share Sources
[FreeBSD/FreeBSD.git] / share / doc / iso / wisc / Makefile
1 #
2 #       Makefile for the tp documents:
3 #   design: TP design/source guide
4 #   appendix_a: index of tp kernel routines & macros by macro/routine name
5 #   appendix_b: index of tp kernel routines & macros by file name
6 #
7 PRINTER = 3a
8 TAGS    = ../../sys/tags
9 SRCS    = ../../sys/netargo/tp_*.c ../../sys/netargo/tp_*.h ../../sys/netargo/tp*.trans
10 TROFF = /usr/local/lib/troff
11
12 #
13 #       Print via speedy for cycles sake...
14 #       (assumes postscript printer...)
15 #
16 program: 
17         @echo printer is $(PRINTER)
18         (cd figs; make)
19         format -P$(PRINTER) -t program.nr | rsh speedy psdit \| lpr -P$(PRINTER)
20
21 parts:
22         @echo printer is $(PRINTER)
23         (cd figs; make)
24         format -P$(PRINTER) -t parts.nr   | rsh speedy psdit \| lpr -P$(PRINTER)
25 #       format -P$(PRINTER) -t parts.nr > /dev/null
26 #       soelim parts.nr | grn -P$(PRINTER) |\
27 #               $(TROFF) -Tpsc | rsh speedy psdit \> /tmp/test
28 #       soelim parts.nr | tbl > /tmp/parts.nr
29
30 clean:
31         /bin/rm -f core junk* a.out *.o spell_errs made
32         touch spell_errs
33
34 spell:
35         (cd figs; make)
36         (cd ../icon; make)
37         /usr/ucb/soelim program.nr | /usr/bin/spell -d hlista > spell_errs
38
39 newdict:
40         cat spell_errs | spellin /usr/dict/hlista > hlista
41
42 all: program appendix_a appendix_b appendix_c
43
44
45 appendix_c:
46         format -P$(PRINTER) appendix_c.nr
47         tbl ../man/man4/table1.src > ../man/man4/table1.nr
48         tbl ../man/man4/table2.src > ../man/man4/table2.nr
49         tbl ../man/man4/table3.src > ../man/man4/table3.nr
50         soelim ../man/man4/tp.4p.src > ../man/man4/tp.4p
51         ditroff -man -P$(PRINTER) ../man/man1/xebec.1
52         ditroff -man -P$(PRINTER) ../man/man2/sendv.2
53         ditroff -man -P$(PRINTER) ../man/man2/recvv.2
54         ditroff -man -P$(PRINTER) ../man/man3/libtp.3
55         ditroff -man -P$(PRINTER) ../man/man4/tp.4p
56         ditroff -man -P$(PRINTER) ../man/man8/tppt.8
57         ditroff -man -P$(PRINTER) ../man/man8/tpdebug.8
58         ditroff -man -P$(PRINTER) ../man/man8/tpstat.8
59
60 appendix_a:
61         ctags -x $(SRCS) | awk '{printf("%s     %s      %s\n",  $$1, $$3, $$2)}'\
62                 | sed -e 's-../../sys/netargo/--' > index_by_func.nr
63         format -P$(PRINTER) appendix_a.nr
64
65 appendix_b:
66         ctags -x $(SRCS) | awk '{printf("%s     %s      %s\n",  $$3, $$1, $$2)}'\
67                 | sed -e 's-../../sys/netargo/--' \
68                 | sort \
69                 | fmtxref -w 80 \
70                 | sed   -e 's/                                  /               /' \
71                                 -e 's/                  /       /' \
72                 > index_by_file.nr
73         format -P$(PRINTER) appendix_b.nr