Re: targets in :child recipes

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Adriaan de Groot wrote:

> 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?

Yes.  I verified this with my version and I have the same problem.  And
"aap clean" does clean all the files, also the ones produced by the
child recipe.  Thus it's logical that "aap" builds all programs, also
the ones in child recipes.

The problem might be that each child recipe has its own "all" target.

-- 
Windows
M!uqoms

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
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.