From: Alexandre Duret-Lutz Date: Thu, 6 Mar 2003 21:18:57 +0000 (+0000) Subject: * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use X-Git-Tag: Release-1-7-3b~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ceac84edfc9432d0e0d6c8523cec79fa77ca2f1;p=thirdparty%2Fautomake.git * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use `test -f foo || echo $(srcdir)/` to emulate a VPATH search when outputing suffix rules. This follows 2003-02-25's change. * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise. * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise. --- diff --git a/ChangeLog b/ChangeLog index c2d438b76..f5025ef29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-03-06 Alexandre Duret-Lutz + + * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use + `test -f foo || echo $(srcdir)/` to emulate a VPATH search when + outputing suffix rules. This follows 2003-02-25's change. + * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise. + * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise. + 2003-03-05 Alexandre Duret-Lutz * automake.texi (Requirements) : Files listed diff --git a/lib/am/depend2.am b/lib/am/depend2.am index 0afcb6557..d5e8a8250 100644 --- a/lib/am/depend2.am +++ b/lib/am/depend2.am @@ -96,7 +96,9 @@ if %?LIBTOOL% if %FASTDEP% ## In fast-dep mode, we can always use -o. if %LTCOMPILE% -MT %LTOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \ - %-c% -o %LTOBJ% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%; \ +?GENERIC? %-c% -o %LTOBJ% %SOURCE%; \ +## For non-suffix rules, we must emulate a VPATH search on %SOURCE%. +?!GENERIC? %-c% -o %LTOBJ% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%; \ then mv "%DEPBASE%.Tpo" "%DEPBASE%.Plo"; \ else rm -f "%DEPBASE%.Tpo"; exit 1; \ fi diff --git a/lib/am/lex.am b/lib/am/lex.am index a7b192075..9ce16f9d0 100644 --- a/lib/am/lex.am +++ b/lib/am/lex.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright 2001 Free Software Foundation, Inc. +## Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -19,9 +19,13 @@ ?GENERIC?%EXT%%DERIVED-EXT%: ?!GENERIC?%OBJ%: %SOURCE% if %?MORE-THAN-ONE% - $(SHELL) $(YLWRAP) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE% +?GENERIC? $(SHELL) $(YLWRAP) %SOURCE% $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE% +## For non-suffix rules, we must emulate a VPATH search on %SOURCE%. +?!GENERIC? $(SHELL) $(YLWRAP) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE% else !%?MORE-THAN-ONE% - %COMPILE% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE% +?GENERIC? %COMPILE% %SOURCE% +## For non-suffix rules, we must emulate a VPATH search on %SOURCE%. +?!GENERIC? %COMPILE% `test -f %SOURCE% || echo '$(srcdir)/'`%SOURCE% ## Edit out `#line' or `#' directives. sed '/^#/ s|$(LEX_OUTPUT_ROOT)\.c|%OBJ%|' $(LEX_OUTPUT_ROOT).c >%OBJ% rm -f $(LEX_OUTPUT_ROOT).c diff --git a/lib/am/yacc.am b/lib/am/yacc.am index 8dcbdb8cd..eb0083dd1 100644 --- a/lib/am/yacc.am +++ b/lib/am/yacc.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright 1998, 1999, 2001 Free Software Foundation, Inc. +## Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -19,9 +19,13 @@ ?GENERIC?%EXT%%DERIVED-EXT%: ?!GENERIC?%OBJ%: %SOURCE% if %?MORE-THAN-ONE% - $(SHELL) $(YLWRAP) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h y.output %BASE%.output -- %COMPILE% +?GENERIC? $(SHELL) $(YLWRAP) %SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h y.output %BASE%.output -- %COMPILE% +## For non-suffix rules, we must emulate a VPATH search on %SOURCE%. +?!GENERIC? $(SHELL) $(YLWRAP) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h y.output %BASE%.output -- %COMPILE% else !%?MORE-THAN-ONE% - %COMPILE% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% +?GENERIC? %COMPILE% %SOURCE% +## For non-suffix rules, we must emulate a VPATH search on %SOURCE%. +?!GENERIC? %COMPILE% `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% ## Edit out `#line' or `#' directives. sed '/^#/ s|y\.tab\.c|%OBJ%|' y.tab.c >%OBJ% rm -f y.tab.c