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"
10 .PHONY: all cleaner buildmanual output
12 buildmanual: rockbox-build.tex pdf
13 @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(MODELNAME)-$(VERSION).pdf
15 buildhtml: rockbox-build.tex
16 @mkdir -p $(OBJDIR)/html
17 @(if [ $(SPLITHTML) ]; then \
18 $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3); \
20 $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),2" $(HTOPTS2) $(HTOPTS3); \
23 @cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
24 @cp -r $(OBJDIR)/html $(OBJDIR)/../
26 @mkdir -p $(OBJDIR)/txt
27 @(cd $(OBJDIR)/txt; for i in $(OBJDIR)/html/*.html; do \
28 links -dump -no-numbering -no-references $$i > `basename $$i html`txt; \
30 @cp -r $(OBJDIR)/txt $(OBJDIR)/../
34 zip -r $(OBJDIR)/rockbox-manual.zip html; \
35 cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ )
39 zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \
40 cp $(OBJDIR)/rockbox-manual-txt.zip $(OBJDIR)/../ )