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 |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 10 | @echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 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 |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 16 | $(MAKE) -C $(OBJDIR) buildmanual |
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 | |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 21 | manual-txt: manual-html |
| 22 | $(MAKE) -C $(OBJDIR) buildtxt |
| 23 | |
| 24 | manual-txt-zip: manual-txt |
| 25 | $(MAKE) -C $(OBJDIR) txtzip |
| 26 | |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 27 | manual-zip: manual-html |
| 28 | $(MAKE) -C $(OBJDIR) htmlzip |
| 29 | |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 30 | clean: |
Dominik Riebeling | 9413c2a | 2006-07-20 18:07:46 +0000 | [diff] [blame] | 31 | @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build directory!; false; fi |
Martin Arver | e425c8e | 2006-03-16 11:05:22 +0000 | [diff] [blame] | 32 | @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf |
Dominik Riebeling | abac739 | 2006-10-23 18:09:38 +0000 | [diff] [blame] | 33 | @rm -rf $(OBJJDIR)/html $(OBJDIR)/txt |