does not rebuild Makefile.in

2008-08-19 Thread Ilya N. Golubev
Version: 3.81

Occurs in any `Makefile' obtained from

Makefile.in generated by automake 1.10.1 from Makefile.am.

so reproducing should be easy.  `automake' args was:

 --gnu

All `Makefile' modification was removing `Makefile' target.  The
reason was obvious: otherwise `make' would fail due to `Makefile' not
remade.

Build and source directories were different.

Below, assuming that `srcdir' shell variable has the same value as in
`Makefile', so that can refer to it in shell commands.

Invoked:

rm -f ${srcdir}/Makefile.in;make ${srcdir}/Makefile.in

`make' invoked no commands to remake it.

This also means that, with unchanged `Makefile' generated
automatically, can not remake it.


___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


Re: does not rebuild Makefile.in

2008-08-19 Thread Philip Guenther
On Tue, Aug 19, 2008 at 1:55 PM, Ilya N. Golubev [EMAIL PROTECTED] wrote:
...
 Occurs in any `Makefile' obtained from
 Makefile.in generated by automake 1.10.1 from Makefile.am.
 so reproducing should be easy.

You'd rather make people download and install something they may not
need instead of copy-n-pasting the Makefile into to your email.  Nice
way to be helpful there when asking for help!

Note that you haven't actually provided enough information to
reproduce the situation even if I did have a copy of automake 1.10.1
on hand: what specific package was this with?  What arguments were
passed to 'configure'?  What directory layout?  What arguments passed
to make?  Are we supposed to just *guess*??!


 All `Makefile' modification was removing `Makefile' target.

Umm, what?  If you remove the 'Makefile' target, then why would make
care that the Makefile.in file is out of date?  Are you including it
as a target on the command line?  For that matter, how are you
invoking make in your tests?  Please describe the behavior when you do
*not* edit the Makefile to remove the 'Makefile' target.


 The reason was obvious: otherwise `make' would fail due to `Makefile' not
 remade.

Could you please show the actual command output and error messages and
makefile contents?


Philip Guenther


___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make