update manual with recent changes to mpegplayer
[Rockbox.git] / manual / Makefile
blob05df9ba5f02b25164414f0962bd43446db4b5098
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
11 .PHONY: all buildmanual clean
12 MANFILE := rockbox-build
14 all: manual-pdf
16 manual-prep: rockbox.tex
17 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
18 @mkdir -p $(OBJDIR)
19 @find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \;
20 @find * -type f \! -regex '.*\.svn.*' -exec cp -u {} $(OBJDIR)/{} \;
21 @printf "%s%%" $(VERSION) > $(OBJDIR)/version.tex
22 @perl credits.pl < $(ROOTDIR)/docs/CREDITS > $(OBJDIR)/CREDITS.tex
23 @printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $(OBJDIR)/$(MANFILE).tex
24 @printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $(OBJDIR)/$(MANFILE).tex
25 @printf "\\\\input{rockbox.tex}\n" >> $(OBJDIR)/$(MANFILE).tex
26 @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
28 manual-pdf: manual-prep rockbox.tex
29 $(MAKE) -C $(OBJDIR) buildmanual
31 manual-html: manual-prep rockbox.tex
32 $(MAKE) -C $(OBJDIR) buildhtml
34 manual-txt: manual-html
35 $(MAKE) -C $(OBJDIR) buildtxt
37 manual-txt-zip: manual-txt
38 $(MAKE) -C $(OBJDIR) txtzip
40 manual-zip: manual-html
41 $(MAKE) -C $(OBJDIR) htmlzip
43 clean:
44 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
45 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
46 @rm -rf $(OBJJDIR)/html $(OBJDIR)/txt