diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2006-08-19 18:31:51 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2006-08-19 18:31:51 +0000 |
commit | c5881ccbf8f858a56ce73ef43d6003c0d856de3d (patch) | |
tree | 5a9c1320fac13e857091034c4981c5d1e2fd86ab /lib/am/lex.am | |
parent | 5258922ab81c63d723eca6a8535df93c6f6f80c7 (diff) | |
download | automake-c5881ccbf8f858a56ce73ef43d6003c0d856de3d.tar.gz |
* lib/am/lex.am, lib/am/yacc.am: Drop the inline rules, always use
ylwrap. Suggested by Akim Demaille long ago, to ease maintenance.
* automake.in (handle_languages): Do not define MORE-THAN-ONE.
(yacc_lex_finish_helper, lang_yacc_finish, lang_lex_finish): Always
require ylwrap.
* doc/automake.texi (Auxiliary Programs, Yacc and Lex): Update the
documentation of ylwrap.
* tests/lex.test, tests/lex4.test, tests/mmodely.test,
tests/yacc.test, tests/yacc2.test, tests/yacc3.test,
tests/yaccpp.test: Adjust.
Diffstat (limited to 'lib/am/lex.am')
-rw-r--r-- | lib/am/lex.am | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/am/lex.am b/lib/am/lex.am index 38f7abb87..12c939e67 100644 --- a/lib/am/lex.am +++ b/lib/am/lex.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +## Copyright (C) 2001, 2002, 2003, 2004, 2006 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 @@ -25,19 +25,7 @@ endif %?MAINTAINER-MODE% ?GENERIC?%EXT%%DERIVED-EXT%: ?!GENERIC?%OBJ%: %SOURCE% -if %?MORE-THAN-ONE% ?GENERIC? $(am__skiplex) $(SHELL) $(YLWRAP) %SOURCE% $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE% ?!GENERIC??DIST_SOURCE? $(am__skiplex) \ ## 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% -?GENERIC? $(am__skiplex) %COMPILE% %SOURCE% -?!GENERIC??DIST_SOURCE? $(am__skiplex) \ -## 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. -?GENERIC? $(am__skiplex) \ -?!GENERIC??DIST_SOURCE? $(am__skiplex)\ - { sed '/^#/ s|$(LEX_OUTPUT_ROOT)\.c|%OBJ%|' $(LEX_OUTPUT_ROOT).c >%OBJ% && \ - rm -f $(LEX_OUTPUT_ROOT).c; } -endif !%?MORE-THAN-ONE% |