mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 04:46:31 +03:00
tools: define rst2pdf
This commit is contained in:
parent
bb905b1f7c
commit
72c9d3d680
3
Makefile
3
Makefile
@ -22,6 +22,7 @@ BENCHEXES=hledger-0.6 hledger-0.7 ledger-3pre
|
||||
# misc. tools
|
||||
PANDOC=pandoc
|
||||
RST2HTML=rst2html
|
||||
RST2PDF=rst2pdf
|
||||
VIEWHTML=open
|
||||
VIEWPS=open
|
||||
VIEWPDF=open
|
||||
@ -273,7 +274,7 @@ pdf: docspdf codepdf
|
||||
# generate pdf versions of main docs
|
||||
# work around rst2pdf needing images in the same directory
|
||||
docspdf:
|
||||
-for d in $(DOCFILES); do (cd website && ln -sf ../$$d && rst2pdf $$d && rm -f $$d); done
|
||||
-for d in $(DOCFILES); do (cd website && ln -sf ../$$d && $(RST2PDF) $$d && rm -f $$d); done
|
||||
|
||||
# format all code as a pdf for offline reading
|
||||
ENSCRIPT=enscript -q --header='$$n|$$D{%+}|Page $$% of $$=' --line-numbers --font=Courier6 --color -o-
|
||||
|
Loading…
Reference in New Issue
Block a user