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-10-23 18:09:38 +00:00
|
|
|
@echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
|
2006-03-16 11:05:22 +00:00
|
|
|
@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-10-23 18:09:38 +00:00
|
|
|
$(MAKE) -C $(OBJDIR) buildmanual
|
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
|
|
|
|
|
2006-10-23 18:09:38 +00:00
|
|
|
manual-txt: manual-html
|
|
|
|
$(MAKE) -C $(OBJDIR) buildtxt
|
|
|
|
|
|
|
|
manual-txt-zip: manual-txt
|
|
|
|
$(MAKE) -C $(OBJDIR) txtzip
|
|
|
|
|
2006-07-20 18:07:46 +00:00
|
|
|
manual-zip: manual-html
|
|
|
|
$(MAKE) -C $(OBJDIR) htmlzip
|
|
|
|
|
2006-03-16 11:05:22 +00:00
|
|
|
clean:
|
2006-11-06 10:21:03 +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
|
2006-10-23 18:09:38 +00:00
|
|
|
@rm -rf $(OBJJDIR)/html $(OBJDIR)/txt
|