2 # Copyright (C) 2011-2017 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 # Automake should stop the creation of Makefile.in files at the first
18 # encountered error due to a required auxiliary file not found.
22 cat >> configure.ac
<<END
26 echo SUBDIRS
= > Makefile.am
28 for i
in 1 2 3 4 5; do
29 echo "AC_CONFIG_FILES([sub$i/Makefile])" >> configure.ac
30 echo "SUBDIRS += sub$i" >> Makefile.am
32 echo python_PYTHON
= foo.py
> sub
$i/Makefile.am
42 ls -l Makefile.
in */Makefile.
in ||
: # For debugging.
43 # Top-level Makefile.in might be created or not, we don't want to set
44 # too strict semantics here, so don't check for it. But the later
45 # files shouldn't exist.
46 test -f sub
1/Makefile.
in
47 test ! -e sub
2/Makefile.
in
48 test ! -e sub
3/Makefile.
in
49 test ! -e sub
4/Makefile.
in
50 test ! -e sub
5/Makefile.
in
52 rm -f Makefile.
in */Makefile.
in
58 ls -l Makefile.
in */Makefile.
in ||
: # For debugging.
59 test -f sub
1/Makefile.
in
60 test -f sub
2/Makefile.
in
61 test -f sub
3/Makefile.
in
62 test ! -e sub
4/Makefile.
in
63 test ! -e sub
5/Makefile.
in