Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 1 | DOCUMENT := rockbox-build |
| 2 | LATEX := pdflatex |
| 3 | include LaTeX.Rules |
| 4 | GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg` |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 5 | HTLATEX := htlatex |
Dominik Riebeling | f15e219 | 2008-12-02 22:33:49 +0000 | [diff] [blame] | 6 | HTOPTS1 := rockbox-html,charset=utf-8,early_ |
Dominik Riebeling | 1244ab6 | 2008-12-16 22:44:22 +0000 | [diff] [blame] | 7 | HTOPTS2 := " -utf8 -cmozhtf" |
Dominik Riebeling | f15e219 | 2008-12-02 22:33:49 +0000 | [diff] [blame] | 8 | HTOPTS3 := "-dhtml/ -cvalidate" |
Rafaël Carré | cdc4245 | 2010-05-30 23:18:06 +0000 | [diff] [blame] | 9 | VERSION=`$(TOOLSDIR)/version.sh $(ROOTDIR)` |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 10 | |
| 11 | .PHONY: all cleaner buildmanual output |
| 12 | |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 13 | buildmanual: rockbox-build.tex pdf |
Dominik Riebeling | 3ed5de8 | 2008-08-31 21:18:21 +0000 | [diff] [blame] | 14 | @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(MODELNAME)-$(VERSION).pdf |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 15 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 16 | buildhtml: rockbox-build.tex |
| 17 | @mkdir -p $(OBJDIR)/html |
Dominik Riebeling | 22b3159 | 2006-07-24 20:44:14 +0000 | [diff] [blame] | 18 | @(if [ $(SPLITHTML) ]; then \ |
| 19 | $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3); \ |
| 20 | else \ |
| 21 | $(HTLATEX) $(DOCUMENT) "$(HTOPTS1),2" $(HTOPTS2) $(HTOPTS3); \ |
| 22 | fi) |
| 23 | |
Dominik Riebeling | 1c3c171 | 2006-08-03 00:08:43 +0000 | [diff] [blame] | 24 | @cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 25 | @cp -r $(OBJDIR)/html $(OBJDIR)/../ |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 26 | buildtxt: buildhtml |
| 27 | @mkdir -p $(OBJDIR)/txt |
| 28 | @(cd $(OBJDIR)/txt; for i in $(OBJDIR)/html/*.html; do \ |
| 29 | links -dump -no-numbering -no-references $$i > `basename $$i html`txt; \ |
| 30 | done) |
| 31 | @cp -r $(OBJDIR)/txt $(OBJDIR)/../ |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 32 | |
| 33 | htmlzip: buildhtml |
Daniel Stenberg | b34c8fc | 2006-07-23 10:37:28 +0000 | [diff] [blame] | 34 | @(cd $(OBJDIR); \ |
| 35 | zip -r $(OBJDIR)/rockbox-manual.zip html; \ |
| 36 | cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ ) |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 37 | |
| 38 | txtzip: buildtxt |
| 39 | @(cd $(OBJDIR); \ |
| 40 | zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \ |
| 41 | cp $(OBJDIR)/rockbox-manual-txt.zip $(OBJDIR)/../ ) |
| 42 | |