1 DOCUMENT := rockbox-build
4 GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
6 HTOPTS1 := rockbox-html,charset=utf-8,early_
7 HTOPTS2 := " -utf8 -cmozhtf"
8 HTOPTS3 := "-dhtml/ -cvalidate"
9 VERSION=`$(TOOLSDIR)/version.sh $(ROOTDIR)`
12 .PHONY: all cleaner buildmanual output
14 buildmanual: rockbox-build.tex pdf
15 @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(MODELNAME)-$(VERSION).pdf
17 buildhtml: rockbox-build.tex
18 @mkdir -p $(OBJDIR)/html
19 @$(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3)
20 @cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/\.js/!d;s/.*\"\(.*\.js\)\".*/\1/g;/</d' | uniq` $(OBJDIR)/html
21 @cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
22 @cp -r $(OBJDIR)/html $(OBJDIR)/../
25 @mkdir -p $(OBJDIR)/txt
26 @(cd $(OBJDIR)/txt; for i in $(OBJDIR)/html/*.html; do \
27 links -dump -no-numbering -no-references $$i > `basename $$i html`txt; \
29 @cp -r $(OBJDIR)/txt $(OBJDIR)/../
33 zip -r $(OBJDIR)/rockbox-manual.zip html; \
34 cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ )
38 zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \
39 cp $(OBJDIR)/rockbox-manual-txt.zip $(OBJDIR)/../ )