2007-01-14 23:29:15 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2007-01-15 17:45:04 +00:00
|
|
|
# $Id$
|
2007-01-14 23:29:15 +00:00
|
|
|
#
|
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
.PHONY: all buildmanual clean
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
all: manual-pdf
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
manual-prep: rockbox.tex
|
|
|
|
@if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
|
2006-03-16 11:05:22 +00:00
|
|
|
@mkdir -p $(OBJDIR)
|
2007-01-16 20:24:13 +00:00
|
|
|
@find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \;
|
|
|
|
@find * -type f \! -regex '.*\.svn.*' -exec cp {} $(OBJDIR)/{} \;
|
2007-01-28 17:09:34 +00:00
|
|
|
@../tools/svnversion.sh | sed -e 's/\n*$$/%/' > version.tex
|
2006-06-05 10:08:54 +00:00
|
|
|
@perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
|
2006-10-23 18:09:38 +00:00
|
|
|
@echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
|
2006-03-16 11:05:22 +00:00
|
|
|
@echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
|
|
|
|
@echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex
|
|
|
|
@mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
|
2006-07-20 18:07:46 +00:00
|
|
|
|
|
|
|
manual-pdf: manual-prep rockbox.tex
|
2006-10-23 18:09:38 +00:00
|
|
|
$(MAKE) -C $(OBJDIR) buildmanual
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
manual-html: manual-prep rockbox.tex
|
|
|
|
$(MAKE) -C $(OBJDIR) buildhtml
|
|
|
|
|
2006-10-23 18:09:38 +00:00
|
|
|
manual-txt: manual-html
|
|
|
|
$(MAKE) -C $(OBJDIR) buildtxt
|
|
|
|
|
|
|
|
manual-txt-zip: manual-txt
|
|
|
|
$(MAKE) -C $(OBJDIR) txtzip
|
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
manual-zip: manual-html
|
|
|
|
$(MAKE) -C $(OBJDIR) htmlzip
|
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
clean:
|
2006-11-06 10:21:03 +00:00
|
|
|
@if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
|
2006-03-16 11:05:22 +00:00
|
|
|
@rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
|
2006-10-23 18:09:38 +00:00
|
|
|
@rm -rf $(OBJJDIR)/html $(OBJDIR)/txt
|