summaryrefslogtreecommitdiffstats
path: root/manual/Makefile.pdflatex
blob: edeac8abb38b49018576dea5fbc602918d2c2578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DOCUMENT := rockbox-build
LATEX := pdflatex
include LaTeX.Rules
GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
HTLATEX := htlatex
HTOPTS1 := "html,early_,2"
HTOPTS2 := ""
HTOPTS3 := "-dhtml/"

.PHONY: all cleaner buildmanual output

buildmanual: rockbox-build.tex
	@cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf

buildhtml: rockbox-build.tex
	@mkdir -p $(OBJDIR)/html
	@$(HTLATEX) $(DOCUMENT) $(HTOPTS1) $(HTOPTS2) $(HTOPTS3)
	@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/png/!d;s/.*\"\(.*\.png\)\".*/\1/g'` $(OBJDIR)/html
	@cp -r $(OBJDIR)/html $(OBJDIR)/../

htmlzip: buildhtml 
	@zip -r $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/html
	@cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../