aboutsummaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/ptx/examples/ajay/Makefile
blob: bff099c5f23c9efb3411cb22b509be7841828d60 (plain) (blame)
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
JUNKFILES = tip-index.ps tip-index.dvi tip-index.tex tip-index.log \
	tip-index.aux

tip-index.ps : tip-index.dvi
	dvips tip-index.dvi

tip-index.dvi : tip-index.tex
	latex tip-index.tex

tip-index.tex : tip.texified header.tex footer.tex
	cat header.tex tip.texified footer.tex > tip-index.tex

tip.texified : tip.eign tip.forgptx Makefile
	gptx -f -r -i ./tip.eign -T < tip.forgptx | x.pl > tip.texified

tip.eign : /usr/lib/eign exclude-words
	cat /usr/lib/eign exclude-words > tip.eign

screenlist : tip.texified
	cat tip.texified \
	| gawk -F\{ '{count[$$4]++} \
		END {for (s in count) printf("%d %20s\n", count[s], s)}' \
		| tr -d '}' \
		| sort -n > screenlist
	@echo "Check (say) the last 100 lines of ./screenlist".

clean :
	rm -f tip.eign tip.texified $(JUNKFILES) screenlist