summaryrefslogtreecommitdiff
path: root/lib/depcomp
diff options
context:
space:
mode:
authorPeter Rosin <peda@lysator.liu.se>2013-05-30 10:49:42 +0200
committerPeter Rosin <peda@lysator.liu.se>2013-05-30 10:49:42 +0200
commitb4bfacb65624e070a25ad0d77f1353308ddccdf2 (patch)
tree163f642500f700ef2b58044c5175e5158d526997 /lib/depcomp
parenteb33ae2b29f33bcf65afc036c9a92a61f77f75e3 (diff)
downloadautomake-b4bfacb65624e070a25ad0d77f1353308ddccdf2.tar.gz
depcomp: avoid trailing backslash in depfile for depmode=msvc7
When compiling a file without any dependencies (no #includes), the msvc7 depmode (and consequently msvc7msys) generates a depfile Makefile fragment with the last line ending with a backslash. This is less robust than needed. Fixes automake bug#14501. * lib/depcomp (msvc7): Finish off the depfile Makefile fragment with an empty line. (scriptversion): Update. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Diffstat (limited to 'lib/depcomp')
-rwxr-xr-xlib/depcomp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/depcomp b/lib/depcomp
index 06b0882dd..4ebd5b3a2 100755
--- a/lib/depcomp
+++ b/lib/depcomp
@@ -1,7 +1,7 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2012-10-18.11; # UTC
+scriptversion=2013-05-30.07; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
@@ -552,6 +552,7 @@ $ {
G
p
}' >> "$depfile"
+ echo >> "$depfile" # make sure the fragment doesn't end with a backslash
rm -f "$tmpdepfile"
;;