Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 1 | .PHONY: all buildmanual clean |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 2 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 3 | all: manual-pdf |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 4 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 5 | manual-prep: rockbox.tex |
| 6 | @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 7 | @mkdir -p $(OBJDIR) |
| 8 | @cp -R * $(OBJDIR) |
Dominik Riebeling | b074b22 | 2006-06-05 10:08:54 +0000 | [diff] [blame] | 9 | @perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 10 | @echo "\newcommand{\platform}{${ARCHOS}}" > $(OBJDIR)/rockbox-build.tex |
| 11 | @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex |
| 12 | @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex |
| 13 | @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 14 | |
| 15 | manual-pdf: manual-prep rockbox.tex |
Marcoen Hirschberg | 1c3dff7 | 2006-07-20 15:33:10 +0000 | [diff] [blame] | 16 | $(MAKE) -C $(OBJDIR) |
Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 17 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 18 | manual-html: manual-prep rockbox.tex |
| 19 | $(MAKE) -C $(OBJDIR) buildhtml |
| 20 | |
| 21 | manual-zip: manual-html |
| 22 | $(MAKE) -C $(OBJDIR) htmlzip |
| 23 | |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 24 | clean: |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 25 | @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build directory!; false; fi |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 26 | @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf |