| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 | #! /bin/sh# Copyright (C) 2002-2017 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, see <http://www.gnu.org/licenses/>.# Test for subdir lexers.required='cc lex'. test-init.shcat >> configure.ac << 'END'AC_PROG_CCAM_PROG_LEXAC_OUTPUTENDcat > Makefile.am << 'END'AUTOMAKE_OPTIONS  = subdir-objectsLDADD             = @LEXLIB@bin_PROGRAMS    = foo/foofoo_foo_SOURCES = foo/foo.lENDmkdir foocat > foo/foo.l << 'END'%{#define YY_NO_UNISTD_H 1%}%%"END"   return EOF;.%%intmain (){  while (yylex () != EOF)    ;  return 0;}END$ACLOCAL$AUTOCONF$AUTOMAKE -a# We expect ylwrap to be used and distributed even if there is# only one lexer.test -f ylwrapmkdir subcd sub../configure$MAKE foo/foo.ols -l # For debugging.test -f foo/foo.ctest -f foo/foo.o# Now, adds another lexer to test ylwrap.cd ..cp foo/foo.l foo/foo2.lcat >> Makefile.am << 'END'EXTRA_foo_foo_SOURCES = foo/foo2.lEND# Make sure Makefile.in has a new time stamp: the rebuild rules are# used below.  We do this after updating Makefile.am, that way we can# ensure that automake, even with --no-force, is not confused if the# new Makefile.am has the same time stamp as the older one (since the# output will change, --no-force should have no effect).$sleep$AUTOMAKE -a --no-forcecd subusing_gmake || $MAKE Makefile$MAKE foo/foo2.ols -l # For debugging.test -f foo/foo2.ctest -f foo/foo2.o:
 |