From 6dc83e651d4d8e77a9b8cf146d725fab8517315c Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Tue, 7 Jan 2014 21:23:45 +0100 Subject: [PATCH] doc/Makefile: avoid spurious whitespace in environment variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * doc/Makefile (%.pdf): Ensure that LANG and LC_ALLĀ are set to "C", not "C " (with trailing whitespace). Make evaluation order produces spurious whitespace in variables when a variable definition is followed by whitespace plus a comment. --- doc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 234ab7eaf..2c8a3c58c 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -54,8 +54,9 @@ clean-install: %: %.texi org-version.inc $(MAKEINFO) --no-split $< -o $@ -%.pdf: LC_ALL=C # work around a bug in texi2dvi -%.pdf: LANG=C # work around a bug in texi2dvi +# the following two lines work around a bug in some versions of texi2dvi +%.pdf: LC_ALL=C +%.pdf: LANG=C %.pdf: %.texi org-version.inc $(TEXI2PDF) $< %.pdf: %.tex