automake
[Top][All Lists]
Advanced

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

Re: sysconf_DATA v. dist_sysconf_DATA


From: David Everly
Subject: Re: sysconf_DATA v. dist_sysconf_DATA
Date: Fri, 10 Nov 2006 11:27:18 -0700

On 11/9/06, Stepan Kasal <address@hidden> wrote:
Hello,

On Thu, Nov 09, 2006 at 06:30:42AM -0700, David Everly wrote:
> If I understand this correctly, my error was in the use of
> $(top_srcdir).  So I'm wondering under what circumstances it would be
> correct to use $(top_srcdir) and $(srcdir).

a very quick answer: do not use $(top_srcdir) nor $(srcdir).

(I apologize that I have not noticed this earlier.)

In variables interpreted by Automake (like sysconf_DATA), the
$(srcdir) prefix is not needed.  It is possible that new versions of
Automake were patched to delete it, but it does not belong there.

To enhance the above advice: do not use $(srcdir) (and such) until
you encounter a problem which will force you to use them.  And I
think that when you are forced to use $(srcdir) in Makefile.am,
it'll be in a _rule_, not in a variable.

This is just a rule of thumb, it is possible that others will
correct/amend it.

I have been working to follow this.  It seems however that I need
dist_TESTS, but this seems to not work so perhaps I should do this
instead:

EXTRA_DIST = $(TESTS)




reply via email to

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