summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-06-19 09:41:13 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-06-19 09:41:13 +0000
commit19f2456712967b957915c6dc1f6998c49f07a8ee (patch)
treee2b8635fa52e3d11700580a706606b5ac29ba39b /manual
parentedaeb1954e13df51d2f6b61b2a52707feb3588db (diff)
Manual: Simplify Makefile htlatex call a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30015 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual')
-rw-r--r--manual/Makefile.pdflatex9
1 files changed, 3 insertions, 6 deletions
diff --git a/manual/Makefile.pdflatex b/manual/Makefile.pdflatex
index 9e9fd28e8e..b5e30dedf6 100644
--- a/manual/Makefile.pdflatex
+++ b/manual/Makefile.pdflatex
@@ -7,6 +7,7 @@ HTOPTS1 := rockbox-html,charset=utf-8,early_
HTOPTS2 := " -utf8 -cmozhtf"
HTOPTS3 := "-dhtml/ -cvalidate"
VERSION=`$(TOOLSDIR)/version.sh $(ROOTDIR)`
+SPLITHTML ?= 2
.PHONY: all cleaner buildmanual output
@@ -15,14 +16,10 @@ buildmanual: rockbox-build.tex pdf
buildhtml: rockbox-build.tex
@mkdir -p $(OBJDIR)/html
- @(if [ $(SPLITHTML) ]; then \
- $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3); \
- else \
- $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),2" $(HTOPTS2) $(HTOPTS3); \
- fi)
-
+ @$(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3)
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
@cp -r $(OBJDIR)/html $(OBJDIR)/../
+
buildtxt: buildhtml
@mkdir -p $(OBJDIR)/txt
@(cd $(OBJDIR)/txt; for i in $(OBJDIR)/html/*.html; do \