diff options
author | Keith Packard <keithp@keithp.com> | 2009-09-03 14:06:17 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-09-03 21:41:10 -0700 |
commit | 8bb6f8d72d67ace53771bbec9c748dd115b8dbcf (patch) | |
tree | 703f0f914edf738dfddd24265188058a1fb626e2 | |
parent | e73134d2e82b147c857e0c2bda8f16f7fff58142 (diff) |
Add Makefile to build x11.pdf
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | specs/XProtocol/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/specs/XProtocol/Makefile b/specs/XProtocol/Makefile new file mode 100644 index 0000000..03291ea --- /dev/null +++ b/specs/XProtocol/Makefile @@ -0,0 +1,25 @@ +TBL = tbl +EQN = eqn +TROFF = groff -Tps +MSMACROS = -ms +UTIL = ../../util +SRCS = $(UTIL)/macros.t X11.protocol X11.keysyms X11.encoding glossary postproc +ISRCS = indexmacros.t $(UTIL)/indexmacros.t + +all: x11.pdf + +x11.pdf: proto.pdf proto.idx.pdf + pdftk proto.pdf proto.idx.pdf cat output $@ + +proto.pdf: + $(TBL) $(SRCS) | $(EQN) | $(TROFF) $(MSMACROS) 2> index.raw | ps2pdf - proto.pdf + +proto.idx.pdf: proto.pdf + tail -1 index.raw > index.pageno + grep -v '^.pn ' index.raw | sort -f -t: +1 -3 +0n -1n | awk -f $(UTIL)/fixindex.awk | awk -f $(UTIL)/block.awk > index.troff + cat $(ISRCS) index.troff | $(TROFF) -me | ps2pdf - proto.idx.pdf + $(RM) index.troff index.pageno + +clean:: + $(RM) index.raw index.troff index.pageno proto.pdf proto.idx.pdf + |