automake
[Top][All Lists]
Advanced

[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: 29 Apr 2003 16:20:53 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

<address@hidden> writes:

> I have been reading Automake docs and found
> target for extra non-compiled junk like this one:
> 
> EXTRA_mypgrogram_SOURCES

That's not for "non-compiled junk", it's for conditionally compiled
sources that may or may not need to be built.

> I'm not sure if this is the one to use for stuff like
> DATA that isn't compiled but you still want to
> drag it around with your program.
> 
> Which is best for non-source code stuff like data files?

EXTRA_DIST, to distribute, but not install anywhere.  If it's
e.g. HTML docs, I do this:

htmldatadir = $(pkgdatadir)/doc/html
htmldata_DATA = index.html ...
EXTRA_DIST = $(htmldata_DATA) ...

For installed program data files, I'd do something very similar:

xmldatadir = $(pkgdatadir)/xml
xmldata_DATA = foo.xml bar.xml ...
EXTRA_DIST = $(xmldata_DATA)

etc.


-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers




reply via email to

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