Sync with FreeBSD. Most importantly, this removes the need for perl.
[dragonfly.git] / gnu / usr.bin / ptx / examples / ajay / Makefile
1 JUNKFILES = tip-index.ps tip-index.dvi tip-index.tex tip-index.log \
2         tip-index.aux
3
4 tip-index.ps : tip-index.dvi
5         dvips tip-index.dvi
6
7 tip-index.dvi : tip-index.tex
8         latex tip-index.tex
9
10 tip-index.tex : tip.texified header.tex footer.tex
11         cat header.tex tip.texified footer.tex > tip-index.tex
12
13 tip.texified : tip.eign tip.forgptx Makefile
14         gptx -f -r -i ./tip.eign -T < tip.forgptx | x.pl > tip.texified
15
16 tip.eign : /usr/lib/eign exclude-words
17         cat /usr/lib/eign exclude-words > tip.eign
18
19 screenlist : tip.texified
20         cat tip.texified \
21         | gawk -F\{ '{count[$$4]++} \
22                 END {for (s in count) printf("%d %20s\n", count[s], s)}' \
23                 | tr -d '}' \
24                 | sort -n > screenlist
25         @echo "Check (say) the last 100 lines of ./screenlist".
26
27 clean :
28         rm -f tip.eign tip.texified $(JUNKFILES) screenlist