summaryrefslogtreecommitdiffstats
path: root/manual/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'manual/Makefile')
-rw-r--r--manual/Makefile21
1 files changed, 7 insertions, 14 deletions
diff --git a/manual/Makefile b/manual/Makefile
index cc30a744b3..43ba4a65a7 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -1,17 +1,10 @@
-.PHONY: all buildmanual clean
+DOCUMENT := rockbox-build
+LATEX := pdflatex
+include LaTeX.Rules
+GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
-all: rockbox-build.tex
+.PHONY: all cleaner buildmanual output
-rockbox-build.tex: rockbox.tex
- @if [ "$(OBJDIR)" = "" ]; then echo Run make in you build diriectory!; false; fi
- @mkdir -p $(OBJDIR)
- @cp -R * $(OBJDIR)
- @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)
+buildmanual: rockbox-build.tex
+ @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf
-clean:
- @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi
- @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf