2006-03-16 11:05:22 +00:00
|
|
|
.PHONY: all buildmanual clean
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
all: rockbox-build.tex
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
rockbox-build.tex: rockbox.tex
|
|
|
|
@if [ "$(OBJDIR)" = "" ]; then echo Run make in you build diriectory!; false; fi
|
|
|
|
@mkdir -p $(OBJDIR)
|
|
|
|
@cp -R * $(OBJDIR)
|
2006-06-05 10:08:54 +00:00
|
|
|
@perl credits.pl < ../docs/CREDITS | iconv -f utf-8 -t iso-8859-1 > $(OBJDIR)/CREDITS.tex
|
2006-03-16 11:05:22 +00:00
|
|
|
@echo "\newcommand{\platform}{${ARCHOS}}" > $(OBJDIR)/rockbox-build.tex
|
|
|
|
@echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
|
|
|
|
@echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex
|
|
|
|
@mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
|
|
|
|
make -C $(OBJDIR)
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
clean:
|
|
|
|
@if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi
|
|
|
|
@rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
|