Re: multiple
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Joerg Beyer wrote:
> I tried to run several aap (version 1.019) with several targets. I got
> an error with the target gcccheck, see below:
>
> joerg@dilbert:/fs1/home/joerg/dev/a-a-p/aap-1.019> ./aap -f default.aap gcccheck
> Aap: Error in recipe "/fs1/home/joerg/dev/a-a-p/aap-1.019/default.aap" line 74: Multiple build commands for target "gcccheck"
>
> I can find only one target in the default.aap file:
> joerg@dilbert> grep "^gcccheck" default.aap
> gcccheck {virtual} :
> gcccheckxx {virtual} :
>
> The target looks fine to me:
> joerg@dilbert:/fs1/home/joerg/dev/a-a-p/aap-1.019> grep "^gcccheck " -C default.aap
> HASGCCXX = no
>
> gcccheck {virtual} :
> :do gcccheck dummy
>
> could you see, what's wrong?
>
> Is that target supposed to work?
The "gcccheck" target certainly works, it is used to find out if gcc can
be used to find dependencies in C and C++ files.
The problem is that you are not supposed to feed "default.aap" to Aap,
because it is always read when Aap starts up. Thus the recipe is used
twice, leading to defining the "gcccheck" target twice.
--
hundred-and-one symptoms of being an internet addict:
255. You work for a newspaper and your editor asks you to write an
article about Internet addiction...in the "first person."
/// 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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf