[me going through veeery old backlogs...] References: On Sunday 15 November 2009, Peter Johansson wrote: > Hello, > Hi Peter and automakers, and sorry for the ludicrous delay of this reply. > 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. > Thanks for the report and the suggestion; I've been bitten few times by this bug myself, so I agree it's time to fix it. See the attached minimalistic patch, which I'll push to maint in a few days (as usual, reviews welcome). There is also a follow-up patch (attached as well) that ensures the stub rules do not end up covering real errors. With these two patches applied, the testsuite continues to pass both in maint and master. BTW, I see that the patches proposed by Ralf in the original threads (and linked above) have never been applied; anybody (ping ping Ralf ;-) knows why? Regards, Stefano