From f8d4c7b6b5f0e035065e94348e479b0ebf3c1756 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 22 Jan 2012 16:25:33 -0800 Subject: makefile to build website docs --- doc/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/Makefile diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 00000000..64a271fa --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,17 @@ +# quick doc-building makefile used by website +# requires: man2html, texinfo + +docs: ledger.1.html ledger.html ledger.pdf ledger3.html ledger3.pdf + +%.1.html: %.1 + -man2html $< | tail -n+3 >$@ + +%.html: %.texi + -makeinfo --force --html --no-split -o $@ $< + +%.pdf: %.texi + -texi2pdf -b -q $< + rm -f $*.aux $*.cp $*.fn $*.ky $*.log $*.pg $*.toc $*.tp $*.vr + +clean: + rm -rf ledger.1.html ledger.html ledger3.html ledger.pdf ledger3.pdf -- cgit v1.2.3