Hi, gang!

François Pinard <[email protected]> Fri, 15 Jul 2005 19:51:15 -0400
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Hi, people.

This is my first message on this list, which appeared rather quiet so
far!  I'm hoping to find some A-A-P enthusiasts here, besides Bram. :-)

More it goes for me, more I have `main.aap' files instead of `Makefile'
files, to the point it becomes slightly tedious adjusting the `makeprg'
option all the time in Vim.  Here is my solution.  If someone has a
better one, please be kind and share it with me...

I define `RM' in my environment as being the full path of the `rm'
program.  This was causing some obscure problem with GNU Make (I do not
even remember which).  So, for years, I've been using a shell function
redefining `make' to the command `env -u RM make', more or less.

I just replaced that shell function by a Python script named `make'
and appearing early in the search path.  That script studies the given
arguments to see if there is a `-f' or a `-C', and then, looks either if
the file ends with `.aap', or if the directory contains a `main.aap'.
In which case, `aap' is called instead of `make'.  Of course, whenever
`make' gets selected, the script removes `RM' from the environment.

-- 
François Pinard   http://pinard.progiciels-bpi.ca


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click