From 49af12a5ba760a011a8f6e1547fb30b8f30c1ac0 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Thu, 21 Jun 2007 15:35:47 +0000 Subject: 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 --- manual/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'manual') 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 -- cgit v1.2.3