doc/Makefile: avoid spurious whitespace in environment variables

* 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.
This commit is contained in:
Achim Gratz 2014-01-07 21:23:45 +01:00
parent 7d9a883b50
commit 6dc83e651d
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ clean-install:
%: %.texi org-version.inc %: %.texi org-version.inc
$(MAKEINFO) --no-split $< -o $@ $(MAKEINFO) --no-split $< -o $@
%.pdf: LC_ALL=C # work around a bug in texi2dvi # the following two lines work around a bug in some versions of texi2dvi
%.pdf: LANG=C # work around a bug in texi2dvi %.pdf: LC_ALL=C
%.pdf: LANG=C
%.pdf: %.texi org-version.inc %.pdf: %.texi org-version.inc
$(TEXI2PDF) $< $(TEXI2PDF) $<
%.pdf: %.tex %.pdf: %.tex