blob: ac7fd628b3bcd568c2b49dabd4d34f1b8fdba5fb [file] [log] [blame]
Martin Arvere425c8e2006-03-16 11:05:22 +00001.PHONY: all buildmanual clean
Christi Scarboroughd68d7c02006-02-06 07:25:25 +00002
Dominik Riebeling9413c2a2006-07-20 18:07:46 +00003all: manual-pdf
Christi Scarboroughd68d7c02006-02-06 07:25:25 +00004
Dominik Riebeling9413c2a2006-07-20 18:07:46 +00005manual-prep: rockbox.tex
6 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
Martin Arvere425c8e2006-03-16 11:05:22 +00007 @mkdir -p $(OBJDIR)
8 @cp -R * $(OBJDIR)
Dominik Riebelingb074b222006-06-05 10:08:54 +00009 @perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
Martin Arvere425c8e2006-03-16 11:05:22 +000010 @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 Riebeling9413c2a2006-07-20 18:07:46 +000014
15manual-pdf: manual-prep rockbox.tex
Marcoen Hirschberg1c3dff72006-07-20 15:33:10 +000016 $(MAKE) -C $(OBJDIR)
Christi Scarboroughd68d7c02006-02-06 07:25:25 +000017
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000018manual-html: manual-prep rockbox.tex
19 $(MAKE) -C $(OBJDIR) buildhtml
20
21manual-zip: manual-html
22 $(MAKE) -C $(OBJDIR) htmlzip
23
Martin Arvere425c8e2006-03-16 11:05:22 +000024clean:
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000025 @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build directory!; false; fi
Martin Arvere425c8e2006-03-16 11:05:22 +000026 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf