Hi Hans,

Automake does not support wildcard specification of files (e.g. whole directories). This is to make sure that:
- a 'make dist' only includes those files from your subdirectories that really should go in a distribution
- a 'make distcheck' is able to check whether any generated files in your subdirectories are properly cleaned by a 'make distclean'
- a 'make uninstall' does not remove any files a user may have put in one of your subdirectories


And probably even more reasons...

For a project I am working on we were faced with a similar problem. I ended up writing my own script that creates a 'makefile include' containing rules for all my 'wildcard files' (in our case generated documentation files). If you want to see how we did this, just have a look at our open-source BEAT package (downloadable from http://www.science-and-technology.nl/beat/).

Regards,
Sander

On woensdag, maa 3, 2004, at 15:24 Europe/Amsterdam, Hans Deragon wrote:

Mmm... Posted this message two days ago but have yet to receive any answer. I believe my question is pretty basic, so anybody care to give me an answer? Surely someone with years of experience can answer this newbie's question?


Thanks in advance, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://autopoweroff.sourceforge.net mailto://[EMAIL PROTECTED] (Automatically poweroff home servers)


-------- Original Message -------- Greetings.

nobase_pkgdata_DATA = \
  engine \
  smarty/lib \
  smarty/plugins \
  smarty/themes/examples

Above, all of the entries in nobase_pkgdata_DATA are directories. However, when
I am performing "make install", I get the error (Same error for the other
directories):


cp: omitting directory `./smarty/themes/examples'

This is because install.sh calls the cp command without the -r parameter.

Is it possible to define directories in nobase_pkgdata_DATA? I want to avoid to
list the files because they change allot during development and can become numerous.


In the Automake documentation, all the examples use files, but nowhere have I
found some warning that directories do not work.



Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://autopoweroff.sourceforge.net mailto://[EMAIL PROTECTED] (Automatically poweroff home servers)







Reply via email to