Add the 'WPS Context Menu' to the wps keytable in the Player's manual. For some reaso...
[kugel-rb.git] / manual / Makefile
blob2c2f761b29aefb5b3c2c5f0838d2ea90f3f83fee
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 .PHONY: all buildmanual clean
12 all: manual-pdf
14 manual-prep: rockbox.tex
15 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
16 @mkdir -p $(OBJDIR)
17 @find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \;
18 @find * -type f \! -regex '.*\.svn.*' -exec cp {} $(OBJDIR)/{} \;
19 @../tools/svnversion.sh | sed -e 's/\n*$$/%/' > version.tex
20 @perl credits.pl < ../docs/CREDITS > $(OBJDIR)/CREDITS.tex
21 @echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
22 @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
23 @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex
24 @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
26 manual-pdf: manual-prep rockbox.tex
27 $(MAKE) -C $(OBJDIR) buildmanual
29 manual-html: manual-prep rockbox.tex
30 $(MAKE) -C $(OBJDIR) buildhtml
32 manual-txt: manual-html
33 $(MAKE) -C $(OBJDIR) buildtxt
35 manual-txt-zip: manual-txt
36 $(MAKE) -C $(OBJDIR) txtzip
38 manual-zip: manual-html
39 $(MAKE) -C $(OBJDIR) htmlzip
41 clean:
42 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
43 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
44 @rm -rf $(OBJJDIR)/html $(OBJDIR)/txt