[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Makefile broken after removing included *.am file
From: |
Peter Johansson |
Subject: |
Makefile broken after removing included *.am file |
Date: |
Sat, 14 Nov 2009 22:37:24 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
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
- Makefile broken after removing included *.am file,
Peter Johansson <=