summaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-06-21 15:35:47 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-06-21 15:35:47 +0000
commit49af12a5ba760a011a8f6e1547fb30b8f30c1ac0 (patch)
tree66b4ad931d21a263887f74a3e3286255283329be /manual
parent2d4ee368e39d8b5fcba43f2b17e00793af0e5579 (diff)
downloadrockbox-49af12a5ba760a011a8f6e1547fb30b8f30c1ac0.tar.gz
rockbox-49af12a5ba760a011a8f6e1547fb30b8f30c1ac0.zip
Fix the manual build issue on ubuntu by using printf instead of echo (FS#6919). Thanks to linuxstb for pointing me to printf. Some additional cleanup of the Makefile.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual')
-rw-r--r--manual/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/manual/Makefile b/manual/Makefile
index 2c2f761b29..05df9ba5f0 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -7,7 +7,9 @@
# $Id$
#
+
.PHONY: all buildmanual clean
+MANFILE := rockbox-build
all: manual-pdf
@@ -15,12 +17,12 @@ manual-prep: rockbox.tex
@if [ "$(OBJDIR)" = "" ]; then echo Run make in you build directory!; false; fi
@mkdir -p $(OBJDIR)
@find * -type d \! -regex '.*\.svn.*' -exec mkdir -p $(OBJDIR)/{} \;
- @find * -type f \! -regex '.*\.svn.*' -exec cp {} $(OBJDIR)/{} \;
- @../tools/svnversion.sh | sed -e 's/\n*$$/%/' > version.tex
- @perl credits.pl < ../docs/CREDITS > $(OBJDIR)/CREDITS.tex
- @echo "\newcommand{\platform}{${MANUALDEV}}" > $(OBJDIR)/rockbox-build.tex
- @echo "\newcommand{\buildversion}{$(VERSION)}" >> $(OBJDIR)/rockbox-build.tex
- @echo "\input{rockbox.tex}" >> $(OBJDIR)/rockbox-build.tex
+ @find * -type f \! -regex '.*\.svn.*' -exec cp -u {} $(OBJDIR)/{} \;
+ @printf "%s%%" $(VERSION) > $(OBJDIR)/version.tex
+ @perl credits.pl < $(ROOTDIR)/docs/CREDITS > $(OBJDIR)/CREDITS.tex
+ @printf "\\\\newcommand{\\\\platform}{${MANUALDEV}}\n" > $(OBJDIR)/$(MANFILE).tex
+ @printf "\\\\newcommand{\\\\buildversion}{$(VERSION)}\n" >> $(OBJDIR)/$(MANFILE).tex
+ @printf "\\\\input{rockbox.tex}\n" >> $(OBJDIR)/$(MANFILE).tex
@mv $(OBJDIR)/Makefile.pdflatex $(OBJDIR)/Makefile
manual-pdf: manual-prep rockbox.tex