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