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: Thu, 9 Nov 2006 11:06:19 -0700

Thanks for the helpful advice, this is now working for me.

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.

HTH,
        Stepan Kasal



--
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
   Information:  http://www.expita.com/nomime.html




reply via email to

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