Dominik Riebeling | cb9fdf7 | 2007-01-14 23:29:15 +0000 | [diff] [blame] | 1 | # __________ __ ___. |
| 2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 6 | # \/ \/ \/ \/ \/ |
Dominik Riebeling | 6de815b | 2007-01-15 17:45:04 +0000 | [diff] [blame] | 7 | # $Id$ |
Dominik Riebeling | cb9fdf7 | 2007-01-14 23:29:15 +0000 | [diff] [blame] | 8 | # |
| 9 | |
Dominik Riebeling | 49af12a | 2007-06-21 15:35:47 +0000 | [diff] [blame] | 10 | |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 11 | .PHONY: all buildmanual clean |
Dominik Riebeling | 49af12a | 2007-06-21 15:35:47 +0000 | [diff] [blame] | 12 | MANFILE := rockbox-build |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 13 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 14 | all: manual-pdf |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 15 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 16 | manual-prep: rockbox.tex |
| 17 | @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 18 | @mkdir -p $(OBJDIR) |
Dominik Riebeling | da6a078 | 2007-01-16 20:24:13 +0000 | [diff] [blame] | 19 | @find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \; |
Dominik Riebeling | 49af12a | 2007-06-21 15:35:47 +0000 | [diff] [blame] | 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 |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 26 | @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 27 | |
| 28 | manual-pdf: manual-prep rockbox.tex |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 29 | $(MAKE) -C $(OBJDIR) buildmanual |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 30 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 31 | manual-html: manual-prep rockbox.tex |
| 32 | $(MAKE) -C $(OBJDIR) buildhtml |
| 33 | |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 34 | manual-txt: manual-html |
| 35 | $(MAKE) -C $(OBJDIR) buildtxt |
| 36 | |
| 37 | manual-txt-zip: manual-txt |
| 38 | $(MAKE) -C $(OBJDIR) txtzip |
| 39 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 40 | manual-zip: manual-html |
| 41 | $(MAKE) -C $(OBJDIR) htmlzip |
| 42 | |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 43 | clean: |
Jonas Häggqvist | a895738 | 2006-11-06 10:21:03 +0000 | [diff] [blame] | 44 | @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 45 | @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 46 | @rm -rf $(OBJJDIR)/html $(OBJDIR)/txt |