]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] depcomp: remove unused variable '$source' from the depcomp script
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 7 Jun 2012 01:06:10 +0000 (03:06 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 8 Jun 2012 10:44:58 +0000 (12:44 +0200)
* lib/am/depend2.am (%.c -> %.$(OBJEXT) compilation recipes): Do not
pass the path of the source file in the 'source' environment variable
to the invocation of the 'depcomp' script.
* lib/depcomp: Don't document the 'source' environment variable, and
do not abort if it is not set; that variable wasn't actually used
anyway.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/depend2.am
lib/depcomp

index 81d2c4c269c8c97463f8d43add63667a5b9814ca..fa8914fe9f2a4daa8db512a05a692a2ea8ea9b45 100644 (file)
@@ -56,7 +56,7 @@ if !%AMDEP%
        %SILENT%$(am__ensure_target_dir_exists)
 else %AMDEP%
        %SILENT%$(am__ensure_depdir)
-       %VERBOSE%source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+       %VERBOSE%object=$@ libtool=no @AMDEPBACKSLASH@
        DEPDIR=$(DEPDIR) $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif %AMDEP%
 ?-o?   %VERBOSE-NODEP%%COMPILE% %-c% %-o% $@ %SOURCEFLAG%$(am__o_src)
@@ -78,7 +78,7 @@ if !%AMDEP%
        %SILENT%$(am__ensure_target_dir_exists)
 else %AMDEP%
        %SILENT%$(am__ensure_depdir)
-       %VERBOSE%source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+       %VERBOSE%object=$@ libtool=yes @AMDEPBACKSLASH@
        DEPDIR=$(DEPDIR) $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif %AMDEP%
 ## We can always use '-o' with Libtool.
index debb6ffa3eae410200617afdc04f86860a0a5ab7..9d1b577283fb6260bdd24e2a0f6a094958f54af6 100755 (executable)
@@ -39,7 +39,6 @@ as side-effects.
 
 Environment variables:
   depmode     Dependency tracking mode.
-  source      Source file read by 'PROGRAMS ARGS'.
   object      Object file output by 'PROGRAMS ARGS'.
   DEPDIR      directory where to store dependencies.
   depfile     Dependency file to output.
@@ -62,8 +61,8 @@ tab=' '
 nl='
 '
 
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
-  echo "depcomp: Variables source, object and depmode must be set" 1>&2
+if test -z "$depmode" || test -z "$object"; then
+  echo "depcomp: Variables object and depmode must be set" 1>&2
   exit 1
 fi