2006-03-16 11:05:22 +00:00
|
|
|
.PHONY: all buildmanual clean
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
all: manual-pdf
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
manual-prep: rockbox.tex
|
|
|
|
@if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
|
2006-03-16 11:05:22 +00:00
|
|
|
@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
|
2006-07-20 18:07:46 +00:00
|
|
|
|
|
|
|
manual-pdf: manual-prep rockbox.tex
|
2006-07-20 15:33:10 +00:00
|
|
|
$(MAKE) -C $(OBJDIR)
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
manual-html: manual-prep rockbox.tex
|
|
|
|
$(MAKE) -C $(OBJDIR) buildhtml
|
|
|
|
|
|
|
|
manual-zip: manual-html
|
|
|
|
$(MAKE) -C $(OBJDIR) htmlzip
|
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
clean:
|
2006-07-20 18:07:46 +00:00
|
|
|
@if [ "$(OBJDIR)" == "" ]; then echo Run make in you build directory!; false; fi
|
2006-03-16 11:05:22 +00:00
|
|
|
@rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
|