Hello,

I included a file in my Makefile.am, but then I decided it was not useful anymore so I removed the include statement and deleted the file. That resulted in a broken Makefile, and running `make all' resulted in:

make: *** No rule to make target `aminclude.am', needed by `Makefile.in'. Stop.

This is very similar to the "deleted header file problem" for *.m4 files that was fixed in version 1.11 by adding a stub rule. I suppose this problem could be solved in the same fashion.

Attached please find a test illustrating the problem.

Thanks,
Peter
#!/bin/sh

cat > configure.ac <<EOF
AC_INIT([1.0], [hello])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF

cat > Makefile.am <<EOF
all-local:; echo hello world
include \$(srcdir)/aminclude.am
EOF

cat > aminclude.am <<EOF
# something
EOF

autoreconf -ivf
./configure

cat > Makefile.am <<EOF
all-local:; echo hello world
EOF
rm -f aminclude.am

make

Reply via email to