forked from len0rd/rockbox
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
This commit is contained in:
parent
2d4ee368e3
commit
49af12a5ba
1 changed files with 8 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue