* quoting myself: > * Stepan Kasal wrote on Tue, May 23, 2006 at 10:43:50PM CEST: > > - or if the author of Makefile.am usees $(srcdir) or $(top_srcdir) > > (well educated maintainers don't) > > This is wrong. Well-educated maintainers do this in some situations: > when the file in question is also listed as prerequisite somewhere (and > even $(EXTRA_DIST) is listed as prerequisite somewhere), so that stuff > *really* works with non-GNU make.
Clarification: prepend $(srcdir)/ if the file in question is both a prerequisite of some rule (this is almost always true) as well as a target of a rule; so that non-GNU make do not forget to update the file when needed. > In fact, typical Makefiles generated by Automake contain at least one > such file: $(srcdir)/Makefile.in. Cheers, Ralf