Christi Scarborough | d68d7c0 | 2006-02-06 07:25:25 +0000 | [diff] [blame] | 1 | .PHONY: all buildmanual clean |
| 2 | |
| 3 | all: rockbox-build.tex |
| 4 | |
| 5 | rockbox-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 | |
| 15 | clean: |
| 16 | @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi |
| 17 | @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf |