summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2006-07-20 18:07:46 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2006-07-20 18:07:46 +0000
commit9413c2a4efdd2de08b1ef57e2f9d5feb4c24c6ad (patch)
tree5622118e206d4a017b2efd7ef54d29d1d20f8242
parent1c3dff7c83e7a2258c545de8e52f1ecad392e635 (diff)
downloadrockbox-9413c2a4efdd2de08b1ef57e2f9d5feb4c24c6ad.tar.gz
rockbox-9413c2a4efdd2de08b1ef57e2f9d5feb4c24c6ad.zip
Add new make targets to build the manual as html.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10265 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--manual/Makefile16
-rw-r--r--manual/Makefile.pdflatex13
-rwxr-xr-xtools/configure37
3 files changed, 48 insertions, 18 deletions
diff --git a/manual/Makefile b/manual/Makefile
index f71be56480..ac7fd628b3 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -1,9 +1,9 @@
1.PHONY: all buildmanual clean 1.PHONY: all buildmanual clean
2 2
3all: rockbox-build.tex 3all: manual-pdf
4 4
5rockbox-build.tex: rockbox.tex 5manual-prep: rockbox.tex
6 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build diriectory!; false; fi 6 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
7 @mkdir -p $(OBJDIR) 7 @mkdir -p $(OBJDIR)
8 @cp -R * $(OBJDIR) 8 @cp -R * $(OBJDIR)
9 @perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex 9 @perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
@@ -11,8 +11,16 @@ rockbox-build.tex: rockbox.tex
11 @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex 11 @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
12 @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex 12 @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex
13 @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile 13 @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
14
15manual-pdf: manual-prep rockbox.tex
14 $(MAKE) -C $(OBJDIR) 16 $(MAKE) -C $(OBJDIR)
15 17
18manual-html: manual-prep rockbox.tex
19 $(MAKE) -C $(OBJDIR) buildhtml
20
21manual-zip: manual-html
22 $(MAKE) -C $(OBJDIR) htmlzip
23
16clean: 24clean:
17 @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi 25 @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build directory!; false; fi
18 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf 26 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
diff --git a/manual/Makefile.pdflatex b/manual/Makefile.pdflatex
index 43ba4a65a7..edeac8abb3 100644
--- a/manual/Makefile.pdflatex
+++ b/manual/Makefile.pdflatex
@@ -2,9 +2,22 @@ DOCUMENT := rockbox-build
2LATEX := pdflatex 2LATEX := pdflatex
3include LaTeX.Rules 3include LaTeX.Rules
4GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg` 4GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
5HTLATEX := htlatex
6HTOPTS1 := "html,early_,2"
7HTOPTS2 := ""
8HTOPTS3 := "-dhtml/"
5 9
6.PHONY: all cleaner buildmanual output 10.PHONY: all cleaner buildmanual output
7 11
8buildmanual: rockbox-build.tex 12buildmanual: rockbox-build.tex
9 @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf 13 @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf
10 14
15buildhtml: rockbox-build.tex
16 @mkdir -p $(OBJDIR)/html
17 @$(HTLATEX) $(DOCUMENT) $(HTOPTS1) $(HTOPTS2) $(HTOPTS3)
18 @cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/png/!d;s/.*\"\(.*\.png\)\".*/\1/g'` $(OBJDIR)/html
19 @cp -r $(OBJDIR)/html $(OBJDIR)/../
20
21htmlzip: buildhtml
22 @zip -r $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/html
23 @cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../
diff --git a/tools/configure b/tools/configure
index 1b8e677a01..318a1c8dd0 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1296,24 +1296,33 @@ bzip2: tar
1296gzip: tar 1296gzip: tar
1297 \$(SILENT)gzip -f9 rockbox.tar 1297 \$(SILENT)gzip -f9 rockbox.tar
1298 1298
1299manual: 1299manual: manual-pdf
1300 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual buildmanual 1300manual-pdf:
1301 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1302
1303manual-html:
1304 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1305
1306manual-zip:
1307 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
1301 1308
1302help: 1309help:
1303 @echo "A few helpful make targets" 1310 @echo "A few helpful make targets"
1304 @echo "" 1311 @echo ""
1305 @echo "all - builds a full Rockbox (default), including tools" 1312 @echo "all - builds a full Rockbox (default), including tools"
1306 @echo "clean - cleans a build directory (not tools)" 1313 @echo "clean - cleans a build directory (not tools)"
1307 @echo "veryclean - cleans the build and tools directories" 1314 @echo "veryclean - cleans the build and tools directories"
1308 @echo "manual - builds a manual" 1315 @echo "manual - builds a manual"
1309 @echo "fullzip - creates a rockbox.zip of your build with fonts" 1316 @echo "manual-html - HTML manual"
1310 @echo "zip - creates a rockbox.zip of your build (no fonts)" 1317 @echo "manual-zip - HTML manual (zipped)"
1311 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)" 1318 @echo "fullzip - creates a rockbox.zip of your build with fonts"
1312 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)" 1319 @echo "zip - creates a rockbox.zip of your build (no fonts)"
1313 @echo "7zip - creates a rockbox.7z of your build (no fonts)" 1320 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
1314 @echo "fontzip - creates rockbox-fonts.zip" 1321 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
1315 @echo "tools - builds the tools only" 1322 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
1316 @echo "install - installs your build (for simulator builds only)" 1323 @echo "fontzip - creates rockbox-fonts.zip"
1324 @echo "tools - builds the tools only"
1325 @echo "install - installs your build (for simulator builds only)"
1317 1326
1318EOF 1327EOF
1319 1328