Simon Hausmann hausmann at
Mon Jun 3 17:13:06 UTC 2002

On Mon, Jun 03, 2002 at 03:58:39PM +0200, Bernd Gehrmann wrote:
> On Monday 03 June 2002 02:24, you wrote:
> > Hi,
> >
> > Here's a small patch that attempts to find the subdirs associated with
> > variables within a eg
> > SUBDIRS = blah1 blah2  $(BLAH_DIRS) blah3
> Have you heard about QMap::find()? ;-)
> > I have no solution for this. Anybody with thoughts on how this could be
> > handled? Perhaps the vars should just remain in the Automake Manager view
> > if not found and then the dirs could be added manually (this would be a bad
> > hack though).
> My idea was to allow pseudo-comments to be added to the,
> e.g.
> #kdevelop-substitute BLA_DIRS = foobar
> Then the parser would treat such variable assignment like normal ones,
> whereas automake/unsermake would simply skip such lines.
> Of course, this would have to be documented somewhere...

With unsermake approaching fast, the old-style of doing AC_SUBST in for BLAH_DIRS is becoming obsolete in the KDE CVS
repository anyway. The new approach uses automake conditionals,
which perfectly match with John's first approach:

if include_foobar


and in then

AM_CONDITIONALS(include_foobar, <some test here>)


More information about the KDevelop-devel mailing list