summaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorMartin Arver <martin.arver@gmail.com>2006-03-16 11:05:22 +0000
committerMartin Arver <martin.arver@gmail.com>2006-03-16 11:05:22 +0000
commite425c8e10f58ab33de3a12dfdf4766a9d27e17e6 (patch)
tree87c6386fd9bf0e10cf0c5adffa29f61f82a30934 /manual
parent42257940fb69f3cc8e552bcafe8a27ce1696b708 (diff)
downloadrockbox-e425c8e10f58ab33de3a12dfdf4766a9d27e17e6.tar.gz
rockbox-e425c8e10f58ab33de3a12dfdf4766a9d27e17e6.tar.bz2
rockbox-e425c8e10f58ab33de3a12dfdf4766a9d27e17e6.zip
I should learn to commit from the right place
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9058 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual')
-rw-r--r--manual/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/manual/Makefile b/manual/Makefile
index 43ba4a65a7..cc30a744b3 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -1,10 +1,17 @@
-DOCUMENT := rockbox-build
-LATEX := pdflatex
-include LaTeX.Rules
-GRAPHIC_FILES:=`find . -name \*.jpg \*.jpeg`
+.PHONY: all buildmanual clean
-.PHONY: all cleaner buildmanual output
+all: rockbox-build.tex
-buildmanual: rockbox-build.tex
- @cp $(OBJDIR)/rockbox-build.pdf $(OBJDIR)/../rockbox-$(ARCHOS)-$(VERSION).pdf
+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)
+clean:
+ @if [ "$(OBJDIR)" == "" ]; then echo Run make in you build diriectory!; false; fi
+ @rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf