blob: 233ab374d237c3bce43afd49be3448b278eb225e [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
Dominik Riebelingabac7392006-10-23 18:09:38 +000010 @echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
Martin Arvere425c8e2006-03-16 11:05:22 +000011 @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
Dominik Riebelingabac7392006-10-23 18:09:38 +000016 $(MAKE) -C $(OBJDIR) buildmanual
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
Dominik Riebelingabac7392006-10-23 18:09:38 +000021manual-txt: manual-html
22 $(MAKE) -C $(OBJDIR) buildtxt
23
24manual-txt-zip: manual-txt
25 $(MAKE) -C $(OBJDIR) txtzip
26
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000027manual-zip: manual-html
28 $(MAKE) -C $(OBJDIR) htmlzip
29
Martin Arvere425c8e2006-03-16 11:05:22 +000030clean:
Dominik Riebeling9413c2a2006-07-20 18:07:46 +000031 @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build directory!; false; fi
Martin Arvere425c8e2006-03-16 11:05:22 +000032 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
Dominik Riebelingabac7392006-10-23 18:09:38 +000033 @rm -rf $(OBJJDIR)/html $(OBJDIR)/txt