Re: how to install data directories

2008-08-31 Thread Matej Tyc
> Well I certainly don't mind putting more things in the FAQ. We could > start with a patch as you suggested above. Care to suggest one? > > Thanks, > Ralf I have attached a patch expanding the section about data files. Of course feel free to correct any obvious mistakes since believe it or not

Re: how to install data directories

2008-08-31 Thread Ralf Wildenhues
* Matej Tyc wrote on Sun, Aug 31, 2008 at 12:30:12PM CEST: > So I would suggest to add in the > datafiles section of the Autoconf manual something like "even if you > have many datafiles that change their names during developement, you > have to list them in Makefile.am like showed here... See wild

Re: how to install data directories

2008-08-31 Thread Ralf Wildenhues
* Matej Tyc wrote on Sun, Aug 31, 2008 at 05:57:13PM CEST: > > Actually I have noticed that > nobase_dist_foo_DATA = takes care about subdirectories > creation, which is really, really good. I suggest adding a reminder > of this to the datafiles section in the automake manual since the > nobase

Re: how to install data directories

2008-08-31 Thread Matej Tyc
On Fri, 2008-08-29 at 15:33 +0200, blah wrote: > Hi, > generally: > foodir = ($datadir)/foo > foo_DATA = file_in_foo another_file_in_foo > Actually I have noticed that nobase_dist_foo_DATA = takes care about subdirectories creation, which is really, really good. I suggest adding a reminder of

Re: how to install data directories

2008-08-31 Thread Remco Bras
Hi, First, you've lost the list again. Second, subdirectories may be uninstalled by using uninstall-hook as follows: (presuming the stuff from the foodir example) uninstall-hook: rmdir $(foodir) Uninstall-hook is run after make uninstall has completed, so the directory may be safely remov

Re: how to install data directories

2008-08-31 Thread Matej Tyc
On Sun, 2008-08-31 at 05:16 +0200, Ralf Wildenhues wrote: > Hello Matej, Remco, > As Matej already remarked, the rule also lacks an accompanying uninstall > rule. > > For what it's worth, the Automake way of doing this would be to list > every file in the Makefile.am (or maybe in an included, gen

Re: how to install data directories

2008-08-30 Thread Ralf Wildenhues
Hello Matej, Remco, First off, please do not top-post, and do not full-quote the messages you reply to, unless you address each of the quoted bits. Otherwise, you will have a hard time getting useful comments on this list. Thanks. * Matej Tyc wrote on Sat, Aug 30, 2008 at 03:04:58PM CEST: > On

Re: how to install data directories

2008-08-30 Thread Matej Tyc
Thank you for your reply, I guess that it does the job concerning instalation, but in this world, nothing is usually perfect :-): 1. What about `make uninstall`? Will the files be removed if they were installed in that way? 2. This requires the user to write shell scripts in Makefile.am, which is,

Re: how to install data directories

2008-08-29 Thread Remco Bras
Hi, ah yes, that is a problem, in that case, you could do something like this in Makefile.am: dirs = some_data_dir some_other_data_dir install-data-local: for d in $(dirs); \ do\ cp -Rv $d $(datadir)\ done Would this solution be acceptable? -Remco

Re: how to install data directories

2008-08-29 Thread Matej Tyc
Thank you for you reply! Well, I thought that it can be done somehow like this, but I don't like the solution for two reasons: 1. I have to list all the files I want to install here. This may make the Makefile.am really huge and since datafiles change much more often than source files, maintaining

Re: how to install data directories

2008-08-29 Thread Matej Tyc
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

Re: how to install data directories

2008-08-29 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- 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_CPPF