From: Tom Tromey Date: Wed, 10 Jul 2002 05:33:31 +0000 (+0000) Subject: * lib/am/depend2.am: Reworked syntax to avoid parsing problem. X-Git-Tag: v1.10.2~1274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d6b294f03890f8b4b52a10f8f61bdab7f9c5df1;p=platform%2Fupstream%2Fautomake.git * lib/am/depend2.am: Reworked syntax to avoid parsing problem. --- diff --git a/ChangeLog b/ChangeLog index bec345f..fa0b212 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2002-07-09 Tom Tromey + * lib/am/depend2.am: Reworked syntax to avoid parsing problem. + * lib/am/depend2.am: Search in srcdir and builddir for %SOURCE% before passing to cygpath. Partial fix for PR automake/334. diff --git a/lib/am/depend2.am b/lib/am/depend2.am index 5db9394..44f24dd 100644 --- a/lib/am/depend2.am +++ b/lib/am/depend2.am @@ -59,21 +59,21 @@ endif !%FASTDEP% ?!GENERIC?%OBJOBJ%: %SOURCE% if %FASTDEP% ## In fast-dep mode, we can always use -o. - file="`test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%"; \ if %COMPILE% -MT %OBJOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \ - %-c% -o %OBJOBJ% `cygpath -w "$$file"`; \ +## Ugly invocation here; using a variable fails due to a parsing +## problem in automake. + %-c% -o %OBJOBJ% `if test -f '%SOURCE%'; then cygpath -w '%SOURCE%'; else cygpath -w '$(srcdir)/%SOURCE%'`; \ then mv "%DEPBASE%.Tpo" "%DEPBASE%.Po"; \ else rm -f "%DEPBASE%.Tpo"; exit 1; \ fi else !%FASTDEP% - file="`test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%"; \ if %AMDEP% source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@ depfile='%DEPBASE%.Po' tmpdepfile='%DEPBASE%.TPo' @AMDEPBACKSLASH@ $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@ endif %AMDEP% -?-o? %COMPILE% %-c% %-o% %OBJOBJ% `cygpath -w "$$file"` -?!-o? %COMPILE% %-c% `cygpath -w "$$file"` +?-o? %COMPILE% %-c% %-o% %OBJOBJ% `if test -f '%SOURCE%'; then cygpath -w '%SOURCE%'; else cygpath -w '$(srcdir)/%SOURCE%'` +?!-o? %COMPILE% %-c% `if test -f '%SOURCE%'; then cygpath -w '%SOURCE%'; else cygpath -w '$(srcdir)/%SOURCE%'` endif !%FASTDEP% if %?LIBTOOL%