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
|
# misc. tools
|
||||||
PANDOC=pandoc
|
PANDOC=pandoc
|
||||||
RST2HTML=rst2html
|
RST2HTML=rst2html
|
||||||
|
RST2PDF=rst2pdf
|
||||||
VIEWHTML=open
|
VIEWHTML=open
|
||||||
VIEWPS=open
|
VIEWPS=open
|
||||||
VIEWPDF=open
|
VIEWPDF=open
|
||||||
@ -273,7 +274,7 @@ pdf: docspdf codepdf
|
|||||||
# generate pdf versions of main docs
|
# generate pdf versions of main docs
|
||||||
# work around rst2pdf needing images in the same directory
|
# work around rst2pdf needing images in the same directory
|
||||||
docspdf:
|
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
|
# format all code as a pdf for offline reading
|
||||||
ENSCRIPT=enscript -q --header='$$n|$$D{%+}|Page $$% of $$=' --line-numbers --font=Courier6 --color -o-
|
ENSCRIPT=enscript -q --header='$$n|$$D{%+}|Page $$% of $$=' --line-numbers --font=Courier6 --color -o-
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user