Re: some $BDIR/target query
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Adriaan de Groot wrote: > 1) Why does AAP build targets in the recipe dir, not in $BDIR? In particular, > this recipe: > > :program foo : bar.c > > builds $BDIR/bar.o and then foo. Why not $BDIR/foo? Suppose I organize my > sources into directories: > > :program foo : foo/bar.c > > now AAP will try to build $BDIR/foo/bar.o, and then foo -- which is a > directory, and will fail. The idea behind this is that intermediate results can be put anywhere, you don't need to know where. Since $BDIR differs from system to system there is no fixed location where they are stored. The resulting program is the final result, thus it must be in the place where the user expects it. You could argue that $BDIR/foo is that place, but after typing "aap" to build your program, a user doesn't know if it ended up in build-FreeBSD4_8_RELEASE or build-OtherSystem_8, thus you can't execute the program without looking carefully where it is. If you have a different situation it's very easy to specify the directory where you want your executable to be stored. You could use: :program $BDIR/foo : foo/bar.c For example, when you require "aap install" before executing "foo". -- How To Keep A Healthy Level Of Insanity: 4. Put your garbage can on your desk and label it "in". /// 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