blob: cc30a744b30beca747815b5a374bb8e56add627a [file] [log] [blame]
Christi Scarboroughd68d7c02006-02-06 07:25:25 +00001.PHONY: all buildmanual clean
2
3all: rockbox-build.tex
4
5rockbox-build.tex: rockbox.tex
6 @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build diriectory!; false; fi
7 @mkdir -p $(OBJDIR)
8 @cp -R * $(OBJDIR)
9 @echo "\newcommand{\platform}{${ARCHOS}}" > $(OBJDIR)/rockbox-build.tex
10 @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
11 @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex
12 @mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
13 make -C $(OBJDIR)
14
15clean:
16 @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi
17 @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf