Re: How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread atoz
Ralf Wildenhues wrote: OK, but you insist on the targets `man-pages' and `readme', you can just put the whole block inside an if: if MAN_PAGES man-pages: # do your stuff else man-pages: # do nothing fi my vars are called WANT_MAN_PAGES, WANT_README etc, but other than tha

Re: How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread atoz
thank you for your reply Ralf Wildenhues wrote: If you go by the GNU Coding Standards, you should use --enable for these, as they don't specify interaction with external packages. fair enough, but it doesn't change the nature of my problem. Instead of this: # man pages if test -n "${with_

How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread atoz
I have added some install options to configure, for example ... --with-man-pages --with-readme and some others I then tried to get automake to add the relevant instructions via automake.am INSTALL_DIRS, like so ... # man pages if test -n "${with_man_pages}"; then \ INSTALL_DIRS += $