[Top][All Lists]

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

Re: What *target* use for non-source files want to add to package like D

From: Roger Leigh
Subject: Re: What *target* use for non-source files want to add to package like DATA?
Date: 30 Apr 2003 19:18:20 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

<address@hidden> writes:

> Roger
> Thanks so much!! This is great help.  I /really/ want
> to learn this and do it right!
> Can I ask you follow up questions to your comments?
> What is $pkgdatadir?? Is that predefined by Autotools?

Yes.  It's just this: pkgdatadir = $(datadir)/$(PACKAGE)

> Is there some implicit understanding that in order
> to do
> xyz_DATA = ...
> you must first define
> xyzdir = ... ???
> Will "make install" put all that xyz_DATA stuff in
> $(xyzdir)?

That's exectly right.  You can define whatever locations you need, if
the predefined bindir, datadir, libdir etc. don't meet your needs,
though it's usually best to base them on one of the defaults, so the
user can easily modify them with configure options like --prefix,
--libdir etc..

> Your html and xml examples were essentially the same.
> Were you suggesting html would *not* be installed but
> *xml* example files would be?? What makes the difference?
> I don't see it.

They both install their files, just to different locations.  They are
identical apart from that.  If you don't want them installed, use
noinst_DATA, or just add them to EXTRA_DIST.

You must add them to EXTRA_DIST, or else they won't be added to the
distribution tarball with "make dist".


Roger Leigh

                Printing on GNU/Linux?
                GPG Public Key: 0x25BFB848 available on public keyservers

reply via email to

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