automake
[Top][All Lists]
Advanced

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

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


From: atoz
Subject: Re: How do I *conditionally* add to INSTALL_DIRS ?
Date: Wed, 10 Jan 2007 08:19:38 +0900


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 that, its the same, for example ...

if WANT_MAN_PAGES
        cp fooman.8 $(foomandir)
fi

etc

and it leads to the following error ...

Makefile.am:175: unterminated conditionals: WANT_MAN_PAGES_TRUE WANT_README_TRUE WANT_LICENSE_TRUE WANT_CREDITS_TRUE WANT_SGML_DOCS_TRUE
automake: ####################
automake: ## Internal Error ##
automake: ####################
automake: undefined condition `TRUE' for `RECURSIVE_TARGETS'
automake: RECURSIVE_TARGETS:
automake:   {
automake: WANT_CREDITS and WANT_LICENSE and WANT_MAN_PAGES and WANT_README and WANT_SGML_DOCS => {
automake:       type: +=
automake:       where: /usr/share/automake-1.9/am/texinfos.am:
automake:       comment:
automake: value: dvi-recursive html-recursive info-recursive pdf-recursive ps-recursive install-info-recursive uninstall-info- recursive \
automake: all-recursive check-recursive installcheck-recursive
automake:       owner: Automake
automake:     }
automake:   }
automake:
automake: Please contact <address@hidden>.

uh?

this is way over my head
thanks again for any help




reply via email to

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