[Top][All Lists]

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

Re: how to install data directories

From: Matej Tyc
Subject: Re: how to install data directories
Date: Fri, 29 Aug 2008 15:21:25 +0200

Thank you,
I see that I can clarify the issue a little bit more:
I now really think that this is more automake than autoconf related.
There are two challenges connected with that:
1. I have to tell the code what is the correct path to those datafiles,
which I had correctly accomplished by including 
AM_CPPFLAGS = -D'<some cool macro>'
2. Installing some files in that directory. I have learned to use 
dist_data_DATA = <file list>, but I would like to write 
dist_data_DATA = <data_directory>. If I do that, I get this error: 
test -z "/usr/share" || /bin/mkdir -p "/usr/share"
 /bin/install -c -m 644 './garden' '/usr/share/garden'
/bin/install: omitting directory `./garden'
(garden is the name of the directory containing datafiles and other
directories). I don't like the idea of long containing lists
of all files and directories that have to be installed... 
3. Distributing the datafiles - I have figured it out, it is OK.
Do you have an idea how to deal with the second problem?

On Fri, 2008-08-29 at 06:38 -0600, Eric Blake wrote:
> Hash: SHA1
> According to Matej Tyc on 8/28/2008 1:53 PM:
> > Hello,
> > I have a project that I adapt to use Autotools and it is a game. It has
> > several directories with data that are required by the program that need
> > to be installed somwhere.
> > I have used AM_CPPFLAGS = -DDATADIR=\"$(datadir)\" trick and I have
> > modified the source files accordingly; however the install fails with a
> > message about omitted directories that are not copied... It is true that
> > in the corresponding data_DATA=beat/ gfx/ wavs/ are
> > directories, but I have to install those directories and I would like to
> > do it in a smart way with as little of work as possible.
> > Any suggestions?
> The fact that you mention AM_CPPFLAGS makes this sound more like an
> automake question than an autoconf one.  That said, you may want to look
> into using dist-hook:
> - --
> Don't work too hard, make some time for fun as well!
> Eric Blake             address@hidden
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Public key at
> Comment: Using GnuPG with Mozilla -
> J7oAn2klaTWiRb/VGP8AZ5iO7PcGlr7M
> =bGlC

reply via email to

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