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
|
|
|
|
|
2006-10-23 18:09:38 +00:00
|
|
|
buildmanual: rockbox-build.tex pdf
|
2006-02-06 07:25:25 +00:00
|
|
|
@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-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)/../
|
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)/../ )
|
|
|
|
|