* lex.am: New file.
+2001-04-09 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&output_lex_build_rule): Output this...
+ * lex.am: New file.
+
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&condition_negate): New.
info_TEXINFOS = automake.texi
amfiles = check.am clean-hdr.am clean-kr.am clean.am comp-vars.am \
-compile.am configure.am data.am dejagnu.am depend.am depend2.am \
-distdir.am footer.am header-vars.am header.am install.am java.am \
-kr-extra.am library.am libs.am libtool.am lisp.am ltlib.am \
+compile.am configure.am data.am dejagnu.am depend.am depend2.am \
+distdir.am footer.am header-vars.am header.am install.am java.am \
+kr-extra.am lex.am library.am libs.am libtool.am lisp.am ltlib.am \
ltlibrary.am mans-vars.am mans.am multilib.am program.am progs.am \
-python.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
+python.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
texi-vers.am texibuild.am texinfos.am yacc.am
dist_pkgdata_DATA = COPYING INSTALL texinfo.tex ansi2knr.c ansi2knr.1 \
info_TEXINFOS = automake.texi
amfiles = check.am clean-hdr.am clean-kr.am clean.am comp-vars.am \
-compile.am configure.am data.am dejagnu.am depend.am depend2.am \
-distdir.am footer.am header-vars.am header.am install.am java.am \
-kr-extra.am library.am libs.am libtool.am lisp.am ltlib.am \
+compile.am configure.am data.am dejagnu.am depend.am depend2.am \
+distdir.am footer.am header-vars.am header.am install.am java.am \
+kr-extra.am lex.am library.am libs.am libtool.am lisp.am ltlib.am \
ltlibrary.am mans-vars.am mans.am multilib.am program.am progs.am \
-python.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
+python.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
texi-vers.am texibuild.am texinfos.am yacc.am
# Generate rule for c/c++.
$output_rules .= &file_contents ('yacc',
- ('YACC_SUFFIX' => $yacc_suffix,
- 'C_SUFFIX' => $c_suffix,
- 'YLWRAP' => $use_ylwrap));
+ ('YLWRAP' => $use_ylwrap,
+ 'YACC_SUFFIX' => $yacc_suffix,
+ 'C_SUFFIX' => $c_suffix));
}
sub output_lex_build_rule
(my $c_suffix = $lex_suffix) =~ tr/l/c/;
- push (@suffixes, $lex_suffix);
- &define_configure_variable ('LEX_OUTPUT_ROOT');
- &define_configure_variable ('LEXLIB');
- $output_rules .= "$lex_suffix$c_suffix:\n\t";
-
- if ($use_ylwrap)
- {
- # Is the $@ correct here? If so, why not use it in the ylwrap
- # build rule for yacc above?
- $output_rules .= '$(SHELL) $(YLWRAP)'
- . ' "$(LEX)" $< $(LEX_OUTPUT_ROOT).c $@ -- $(AM_LFLAGS) $(LFLAGS)';
- }
- else
- {
- $output_rules .= '$(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@';
- }
- $output_rules .= "\n";
+ $output_rules .= &file_contents ('lex',
+ ('YLWRAP' => $use_ylwrap,
+ 'LEX_SUFFIX' => $lex_suffix,
+ 'C_SUFFIX' => $c_suffix));
}
--- /dev/null
+## automake - create Makefile.in from Makefile.am
+## Copyright 2001 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
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+
+LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
+LEXLIB = @LEXLIB@
+
+## Generate rule for c/c++.
+%LEX_SUFFIX%%C_SUFFIX%:
+if %?YLWRAP%
+ $(SHELL) $(YLWRAP) $(LEX) $< $(LEX_OUTPUT_ROOT).c $@ -- $(AM_LFLAGS) $(LFLAGS)
+else
+ $(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
+endif %?YLWRAP%
info_TEXINFOS = automake.texi
amfiles = check.am clean-hdr.am clean-kr.am clean.am comp-vars.am \
-compile.am configure.am data.am dejagnu.am depend.am depend2.am \
-distdir.am footer.am header-vars.am header.am install.am java.am \
-kr-extra.am library.am libs.am libtool.am lisp.am ltlib.am \
+compile.am configure.am data.am dejagnu.am depend.am depend2.am \
+distdir.am footer.am header-vars.am header.am install.am java.am \
+kr-extra.am lex.am library.am libs.am libtool.am lisp.am ltlib.am \
ltlibrary.am mans-vars.am mans.am multilib.am program.am progs.am \
-python.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
+python.am remake-hdr.am remake.am scripts.am subdirs.am tags.am \
texi-vers.am texibuild.am texinfos.am yacc.am
dist_pkgdata_DATA = COPYING INSTALL texinfo.tex ansi2knr.c ansi2knr.1 \
--- /dev/null
+## automake - create Makefile.in from Makefile.am
+## Copyright 2001 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
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+
+LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
+LEXLIB = @LEXLIB@
+
+## Generate rule for c/c++.
+%LEX_SUFFIX%%C_SUFFIX%:
+if %?YLWRAP%
+ $(SHELL) $(YLWRAP) $(LEX) $< $(LEX_OUTPUT_ROOT).c $@ -- $(AM_LFLAGS) $(LFLAGS)
+else
+ $(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
+endif %?YLWRAP%