2 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Check that remake rules works for adding a new subdirectory from a
18 # pre-existing subdirectory.
19 # See also the other similar tests `remake-subdir*.test', and the
20 # related test `aclocal5.test'.
24 cat >> configure.
in <<'END'
25 m4_include([subdirs.m4])
26 AC_SUBST([MAGIC], [magic])
30 echo 'AC_CONFIG_FILES([sub/Makefile])' > subdirs.
m4
31 echo 'SUBDIRS = sub' > Makefile.am
45 echo 'AC_CONFIG_FILES([sub/subsub/Makefile])' >> ..
/subdirs.
m4
46 echo 'SUBDIRS = subsub' >> Makefile.am
48 cat > subsub
/Makefile.am
<<'END'
52 using_gmake ||
$MAKE Makefile
54 test -f subsub
/ok-it-works