Merge pull request #54 from simonmichael/next

quick makefile used for building website
This commit is contained in:
John Wiegley 2012-01-26 15:18:04 -08:00
commit 667fdbf053
2 changed files with 20 additions and 0 deletions

3
.gitignore vendored
View file

@ -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

17
doc/Makefile Normal file
View file

@ -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