2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 .PHONY
: all buildmanual
clean
14 manual-prep
: rockbox.
tex
15 @if
[ "$(OBJDIR)" = "" ]; then echo Run make in you build directory
!; false
; fi
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
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