summaryrefslogtreecommitdiffstats
path: root/manual/Makefile.pdflatex
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2006-07-24 20:44:14 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2006-07-24 20:44:14 +0000
commit22b3159458990a5cb9a84a97a31af02145e95046 (patch)
tree1c1f038a47cabb186bdbb6ba1960021820ebbb7c /manual/Makefile.pdflatex
parent5deae51801455cb55cab5c3b675961bbc4c9f84d (diff)
downloadrockbox-22b3159458990a5cb9a84a97a31af02145e95046.tar.gz
rockbox-22b3159458990a5cb9a84a97a31af02145e95046.tar.bz2
rockbox-22b3159458990a5cb9a84a97a31af02145e95046.zip
Introduce SPLITHTML to control the splitting of the html manual. Set SPLITHTML=1 for single file output, 2 (default) for splitting on chapters and 3 for even more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10310 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/Makefile.pdflatex')
-rw-r--r--manual/Makefile.pdflatex9
1 files changed, 7 insertions, 2 deletions
diff --git a/manual/Makefile.pdflatex b/manual/Makefile.pdflatex
index 582fa211fa..9ea633a71f 100644
--- a/manual/Makefile.pdflatex
+++ b/manual/Makefile.pdflatex
@@ -3,7 +3,7 @@ LATEX := pdflatex
include LaTeX.Rules
GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
HTLATEX := htlatex
-HTOPTS1 := "rockbox-html,early_,2"
+HTOPTS1 := rockbox-html,early_
HTOPTS2 := ""
HTOPTS3 := "-dhtml/"
@@ -14,7 +14,12 @@ buildmanual: rockbox-build.tex
buildhtml: rockbox-build.tex
@mkdir -p $(OBJDIR)/html
- @$(HTLATEX) $(DOCUMENT) $(HTOPTS1) $(HTOPTS2) $(HTOPTS3)
+ @(if [ $(SPLITHTML) ]; then \
+ $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3); \
+ else \
+ $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),2" $(HTOPTS2) $(HTOPTS3); \
+ fi)
+
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/png/!d;s/.*\"\(.*\.png\)\".*/\1/g'` $(OBJDIR)/html
@cp -r $(OBJDIR)/html $(OBJDIR)/../