autoconf
[Top][All Lists]
Advanced

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

Re: Choosing not to install documentation


From: Ralf Wildenhues
Subject: Re: Choosing not to install documentation
Date: Sat, 27 Jun 2009 13:53:49 +0200
User-agent: Mutt/1.5.20 (2009-06-15)

* Kirk Strauser wrote on Fri, Jun 26, 2009 at 05:09:10PM CEST:
> > if INSTALLDOCS
> > MAYBEDOCS = doc
> > dist_doc_DATA = README
> > else
> > docdir =
> > endif
> > SUBDIRS = src $(MAYBEDOCS)
> >
> >(untested).
> 
> Yielding:
> 
> Makefile.am:5: docdir was already defined in condition TRUE, which
> includes condition !INSTALLDOCS ...
> configure.ac:5: ... `docdir' previously defined here
> make: *** [Makefile.in] Error 1

Ah, sorry about that.  You can add
  docdir = @docdir@

either before the conditional, or in the if-true branch.
Of course 'automake -Wall' without -Wno-override will warn
about this.

Cheers,
Ralf




reply via email to

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