2 # Copyright (C) 2003 Free Software Foundation, Inc.
4 # This file is part of GNU Automake.
6 # GNU Automake is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GNU Automake is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Automake; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 # Boston, MA 02110-1301, USA.
21 # Make sure dependencies on aclocal.m4 are set correctly.
22 # Report from Jim Meyering.
24 # We need GNU make for the `rebuild rules' to be triggered.
30 cat >>configure.in <<EOF
34 AC_CONFIG_FILES([lib/Makefile])
39 cat >m4/mymacro.m4 <<EOF
40 AC_DEFUN([MY_MACRO], [])
46 cat >lib/Makefile.am <<'EOF'
47 noinst_LIBRARIES = liberi.a
48 liberi_a_SOURCES = bar.c
49 liberi_a_LIBADD = $(LIBOBJS)
52 cat >Makefile.am <<'EOF'
54 EXTRA_DIST = m4/mymacro.m4
55 ACLOCAL_AMFLAGS = -I m4
57 test -f $(distdir)/lib/foo.c
58 test -f $(distdir)/lib/bar.c
60 check-not-foo: distdir
61 test ! -f $(distdir)/lib/foo.c
62 test -f $(distdir)/lib/bar.c
71 # Update one of the macros. This should cause ./configure, Makefile.in,
72 # Makefile, lib/Makefile.in, and lib/Makfile to be updated. This assumes
75 cat >m4/mymacro.m4 <<'EOF'
76 AC_DEFUN([MY_MACRO], [AC_LIBOBJ([foo])])