* 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>
%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)
%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.
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.
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