summaryrefslogtreecommitdiffstats
path: root/manual/Makefile.pdflatex
diff options
context:
space:
mode:
Diffstat (limited to 'manual/Makefile.pdflatex')
-rw-r--r--manual/Makefile.pdflatex14
1 files changed, 13 insertions, 1 deletions
diff --git a/manual/Makefile.pdflatex b/manual/Makefile.pdflatex
index 2e132211e0..2048423f5c 100644
--- a/manual/Makefile.pdflatex
+++ b/manual/Makefile.pdflatex
@@ -9,7 +9,7 @@ HTOPTS3 := "-dhtml/"
.PHONY: all cleaner buildmanual output
-buildmanual: rockbox-build.tex
+buildmanual: rockbox-build.tex pdf
@cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf
buildhtml: rockbox-build.tex
@@ -22,8 +22,20 @@ buildhtml: rockbox-build.tex
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
@cp -r $(OBJDIR)/html $(OBJDIR)/../
+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)/../
htmlzip: buildhtml
@(cd $(OBJDIR); \
zip -r $(OBJDIR)/rockbox-manual.zip html; \
cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ )
+
+txtzip: buildtxt
+ @(cd $(OBJDIR); \
+ zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \
+ cp $(OBJDIR)/rockbox-manual-txt.zip $(OBJDIR)/../ )
+