2006-02-06 07:25:25 +00:00
|
|
|
DOCUMENT := rockbox-build
|
|
|
|
LATEX := pdflatex
|
|
|
|
include LaTeX.Rules
|
|
|
|
GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
|
2006-07-20 18:07:46 +00:00
|
|
|
HTLATEX := htlatex
|
2008-12-02 22:33:49 +00:00
|
|
|
HTOPTS1 := rockbox-html,charset=utf-8,early_
|
2008-12-16 22:44:22 +00:00
|
|
|
HTOPTS2 := " -utf8 -cmozhtf"
|
2008-12-02 22:33:49 +00:00
|
|
|
HTOPTS3 := "-dhtml/ -cvalidate"
|
2010-05-30 23:18:06 +00:00
|
|
|
VERSION=`$(TOOLSDIR)/version.sh $(ROOTDIR)`
|
2011-06-19 09:41:13 +00:00
|
|
|
SPLITHTML ?= 2
|
2006-02-06 07:25:25 +00:00
|
|
|
|
|
|
|
.PHONY: all cleaner buildmanual output
|
|
|
|
|
2006-10-23 18:09:38 +00:00
|
|
|
buildmanual: rockbox-build.tex pdf
|
2008-08-31 21:18:21 +00:00
|
|
|
@cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(MODELNAME)-$(VERSION).pdf
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
buildhtml: rockbox-build.tex
|
|
|
|
@mkdir -p $(OBJDIR)/html
|
2011-06-19 09:41:13 +00:00
|
|
|
@$(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3)
|
2006-08-03 00:08:43 +00:00
|
|
|
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
|
2006-07-20 18:07:46 +00:00
|
|
|
@cp -r $(OBJDIR)/html $(OBJDIR)/../
|
2011-06-19 09:41:13 +00:00
|
|
|
|
2006-10-23 18:09:38 +00:00
|
|
|
buildtxt: buildhtml
|
|
|
|
@mkdir -p $(OBJDIR)/txt
|
|
|
|
@(cd $(OBJDIR)/txt; for i in $(OBJDIR)/html/*.html; do \
|
|
|
|
links -dump -no-numbering -no-references $$i > `basename $$i html`txt; \
|
|
|
|
done)
|
|
|
|
@cp -r $(OBJDIR)/txt $(OBJDIR)/../
|
2006-07-20 18:07:46 +00:00
|
|
|
|
|
|
|
htmlzip: buildhtml
|
2006-07-23 10:37:28 +00:00
|
|
|
@(cd $(OBJDIR); \
|
|
|
|
zip -r $(OBJDIR)/rockbox-manual.zip html; \
|
|
|
|
cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ )
|
2006-10-23 18:09:38 +00:00
|
|
|
|
|
|
|
txtzip: buildtxt
|
|
|
|
@(cd $(OBJDIR); \
|
|
|
|
zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \
|
|
|
|
cp $(OBJDIR)/rockbox-manual-txt.zip $(OBJDIR)/../ )
|
|
|
|
|