From: Stefano Lattarini Date: Thu, 7 Jun 2012 01:06:10 +0000 (+0200) Subject: [ng] depcomp: remove unused variable '$source' from the depcomp script X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=765c3d960981344c0332137153255b24f65b0932;p=thirdparty%2Fautomake.git [ng] depcomp: remove unused variable '$source' from the depcomp script * 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 --- diff --git a/lib/am/depend2.am b/lib/am/depend2.am index 81d2c4c26..fa8914fe9 100644 --- a/lib/am/depend2.am +++ b/lib/am/depend2.am @@ -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. diff --git a/lib/depcomp b/lib/depcomp index debb6ffa3..9d1b57728 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -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