[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating subdirs of distdir

From: Ralf Wildenhues
Subject: Re: Creating subdirs of distdir
Date: Wed, 24 May 2006 07:52:18 +0200
User-agent: Mutt/1.5.11

* quoting myself:
> * Stepan Kasal wrote on Tue, May 23, 2006 at 10:43:50PM CEST:
> > - or if the author of 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)/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]