From f8d4c7b6b5f0e035065e94348e479b0ebf3c1756 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 22 Jan 2012 16:25:33 -0800 Subject: [PATCH 1/2] 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 From d14e768c27cfb90eefe04c8f992108304dbd16a8 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 22 Jan 2012 16:26:23 -0800 Subject: [PATCH 2/2] ignore rendered html docs --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index eaeeb567..5213ce60 100644 --- a/.gitignore +++ b/.gitignore @@ -83,3 +83,6 @@ /dist/win/vc9/ledger.suo /dist/win/vc9/lib/Win32/Debug/ /dist/win/vc9/system.hh +/doc/ledger.1.html +/doc/ledger.html +/doc/ledger3.html