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: cs
Subject: Re: What *target* use for non-source files want to add to package like DATA?
Date: Wed, 30 Apr 2003 19:03:04 -0700 (MST)

Would one have problems with html_data instead of htmldata???

I'm having problems and wondering if underscores are off limits here.

Chris

 -------- Original Message --------
   Subject: Re: What *target* use for non-source files want to add to
package like DATA?
   From: Roger Leigh <address@hidden>
   Date: Tue, April 29, 2003 8:20 am
   To: <address@hidden>

   <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]