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
|
2006-07-24 20:44:14 +00:00
|
|
|
HTOPTS1 := rockbox-html,early_
|
2006-07-20 18:07:46 +00:00
|
|
|
HTOPTS2 := ""
|
|
|
|
HTOPTS3 := "-dhtml/"
|
2006-02-06 07:25:25 +00:00
|
|
|
|
|
|
|
.PHONY: all cleaner buildmanual output
|
|
|
|
|
|
|
|
buildmanual: rockbox-build.tex
|
|
|
|
@cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf
|
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
buildhtml: rockbox-build.tex
|
|
|
|
@mkdir -p $(OBJDIR)/html
|
2006-07-24 20:44:14 +00:00
|
|
|
@(if [ $(SPLITHTML) ]; then \
|
|
|
|
$(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3); \
|
|
|
|
else \
|
|
|
|
$(HTLATEX) $(DOCUMENT) "$(HTOPTS1),2" $(HTOPTS2) $(HTOPTS3); \
|
|
|
|
fi)
|
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/png/!d;s/.*\"\(.*\.png\)\".*/\1/g'` $(OBJDIR)/html
|
|
|
|
@cp -r $(OBJDIR)/html $(OBJDIR)/../
|
|
|
|
|
|
|
|
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)/../ )
|