targets in :child recipes

Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
This applies to my slightly hacked CVS version of AAP. Perhaps someone with a 
less-hacked copy can confirm.

It seems that current AAP doesn't add targets in child recipes to the all 
target. I have the following two recipes:

eggs.ebn.kun.nl$cat main.aap
:program a : b.c

:child subdir/main.aap
eggs.ebn.kun.nl$cat subdir/main.aap
:program b : t.c


b.c and t.c are whatever trivial C program I have at hand. if I run AAP now:

eggs.ebn.kun.nl$aap
Aap: Creating directory "/tmp/aap/build-FreeBSD4_9_RC"
Aap:  cc       -MM b.c > build-FreeBSD4_9_RC/b.c.aap
Aap: cc    -O2  -c -o build-FreeBSD4_9_RC/b.o b.c
Aap: cc  -O2 -o a build-FreeBSD4_9_RC/b.o


It doesn't build the target b in subdir/ - it doesn't even compile the 
sources. If I add a :print to the child, then it prints that, sure. If I add 
	all : b
as a target in subdir/main.aap, then only b gets built. Only by putting all : 
a as well in the toplevel main.aap does that get built as well.

Shouldn't all :program and whatnot targets be added to the toplevel all target 
automagitcally?



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.