Skip to content

Commit

Permalink
Escape Tex strings in Makefile (ter)
Browse files Browse the repository at this point in the history
Finally, use printf instead of echo.  This should work everywhere.
  • Loading branch information
kerneis committed Aug 3, 2012
1 parent 62ab3e1 commit 3ea3a53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile.in
Expand Up @@ -325,8 +325,8 @@ doc/cilpp.tex: doc/cilcode.pl doc/cil.tex lib/Cilly.pm
# Documentation generated from latex files using "hevea"
texdoc: doc/cilpp.tex
# Create the version document
cd doc/html/cil; echo '\def\cilversion{@CIL_VERSION@}' >cil.version.tex
cd doc/html/cil; echo '\def\ccuredversion{@CCURED_VERSION@}' >>cil.version.tex
cd doc/html/cil; printf '\\def\\cilversion{@CIL_VERSION@}\n' >cil.version.tex
cd doc/html/cil; printf '\\def\\ccuredversion{@CCURED_VERSION@}\n' >>cil.version.tex
cd doc/html/cil; hevea -exec xxdate.exe ../../cilpp
cd doc/html/cil; hevea -exec xxdate.exe ../../cilpp
cd doc/html/cil; mv cilpp.html cil.html
Expand All @@ -335,8 +335,8 @@ texdoc: doc/cilpp.tex
cp -f doc/header.html doc/html/cil

pdfdoc: doc/cilpp.tex $(OBJDIR)/pretty.cmi $(OBJDIR)/cil.cmi
cd doc; echo '\def\cilversion{@CIL_VERSION@}' >cil.version.tex
cd doc; echo '\def\ccuredversion{@CCURED_VERSION@}' >>cil.version.tex
cd doc; printf '\\def\\cilversion{@CIL_VERSION@}\n' >cil.version.tex
cd doc; printf '\\def\\ccuredversion{@CCURED_VERSION@}\n' >>cil.version.tex
cd doc; pdflatex cilpp.tex; pdflatex cilpp.tex
cd doc; mv cilpp.pdf html/cil/CIL.pdf
ocamldoc -o doc/cil-api.tex.tmp -v -stars \
Expand Down

0 comments on commit 3ea3a53

Please sign in to comment.