[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: subdirs.am and $(RECURSIVE_TARGETS)
From: |
Tom Tromey |
Subject: |
Re: subdirs.am and $(RECURSIVE_TARGETS) |
Date: |
24 Feb 2001 21:39:19 -0700 |
Akim> Not only to I find this more pleasant, but most importantly it's
Akim> a win for Automake (we can have more modular *.am files which
Akim> register their own recursive targets), and it's a win for users
Akim> who can += on RECURSIVE_TARGETS.
>> In the not-too-distant past, you couldn't `+=' an
>> internally-defined variable.
And you still can't -- I forgot.
I've thought about this more and I'd rather we not use a variable for
internal targets. If we want a variable for the user then that is
fine.
Derek> RECURSIVE_TARGETS += mytarget
For this to be really nice I think we'd have to automatically add
`mytarget-recursive' and `mytarget' to any Makefile.am beneath the
defining Makefile.am.
However, this turns out to be hard because we won't know about it when
building a single Makefile.in.
One approach would be to require recursive targets to be defined in
configure.in. But that is pretty heavy.
Tom