blob: 9e9fd28e8ec666e06cae9d8f11a1ddb2ed9c4bfe [file] [log] [blame]
Christi Scarboroughd68d7c02006-02-06 07:25:25 +00001DOCUMENT := rockbox-build
2LATEX := pdflatex
3include LaTeX.Rules
4GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
Dominik Riebeling9413c2a2006-07-20 18:07:46 +00005HTLATEX := htlatex
Dominik Riebelingf15e2192008-12-02 22:33:49 +00006HTOPTS1 := rockbox-html,charset=utf-8,early_
Dominik Riebeling1244ab62008-12-16 22:44:22 +00007HTOPTS2 := " -utf8 -cmozhtf"
Dominik Riebelingf15e2192008-12-02 22:33:49 +00008HTOPTS3 := "-dhtml/ -cvalidate"
Rafaël Carrécdc42452010-05-30 23:18:06 +00009VERSION=`$(TOOLSDIR)/version.sh $(ROOTDIR)`
Christi Scarboroughd68d7c02006-02-06 07:25:25 +000010
11.PHONY: all cleaner buildmanual output
12
Dominik Riebelingabac7392006-10-23 18:09:38 +000013buildmanual: rockbox-build.tex pdf
Dominik Riebeling3ed5de82008-08-31 21:18:21 +000014 @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(MODELNAME)-$(VERSION).pdf
Christi Scarboroughd68d7c02006-02-06 07:25:25 +000015
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000016buildhtml: rockbox-build.tex
17 @mkdir -p $(OBJDIR)/html
Dominik Riebeling22b31592006-07-24 20:44:14 +000018 @(if [ $(SPLITHTML) ]; then \
19 $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3); \
20 else \
21 $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),2" $(HTOPTS2) $(HTOPTS3); \
22 fi)
23
Dominik Riebeling1c3c1712006-08-03 00:08:43 +000024 @cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000025 @cp -r $(OBJDIR)/html $(OBJDIR)/../
Dominik Riebelingabac7392006-10-23 18:09:38 +000026buildtxt: buildhtml
27 @mkdir -p $(OBJDIR)/txt
28 @(cd $(OBJDIR)/txt; for i in $(OBJDIR)/html/*.html; do \
29 links -dump -no-numbering -no-references $$i > `basename $$i html`txt; \
30 done)
31 @cp -r $(OBJDIR)/txt $(OBJDIR)/../
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000032
33htmlzip: buildhtml
Daniel Stenbergb34c8fc2006-07-23 10:37:28 +000034 @(cd $(OBJDIR); \
35 zip -r $(OBJDIR)/rockbox-manual.zip html; \
36 cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ )
Dominik Riebelingabac7392006-10-23 18:09:38 +000037
38txtzip: buildtxt
39 @(cd $(OBJDIR); \
40 zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \
41 cp $(OBJDIR)/rockbox-manual-txt.zip $(OBJDIR)/../ )
42