Re: scp and install_files

Bram Moolenaar <[email protected]> Sun, 18 Jan 2004 15:13:02 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Scott Henry Harrison wrote:

> > You need to put the "scp://" on the first part.  When not using $DESTDIR
> > that should be in $PREFIX.  The directory argument of install_files() is
> > the directory below the prefix, you can't specify the copy method there.
> > 
> > PREFIX = scp://[email protected]
> > all:
> >    @install_files("/tmp","Makefile.in",'0644')
> 
> Note that when it is something like:
> 
> PREFIX = /
> all:
>    @install_files("/tmp","Makefile.in",'0644')
> 
> and I do
> 
> make -f test.aap PREFIX=scp://[email protected]

Ehm, you apparently typed this, with a few mistakes...

> it installs in (locally)
> 
> /scp:/sharrison\@somewhere.cc
> 
> Why isn't the command-line PREFIX overriding the *.aap's
> PREFIX?

The command-line values of variables are used to initialize the
variables before executing the recipe.  Assignments in a recipe may then
change the values again.  Aap != make :-)

I always found it very confusing that make would sometimes skip an
assignment.  "The assignment is there, why doesn't it work?  Oh, there
is an enviroment variable with the same name...".

-- 
GUARD #2:  Wait a minute -- supposing two swallows carried it together?
GUARD #1:  No, they'd have to have it on a line.
GUARD #2:  Well, simple!  They'd just use a standard creeper!
GUARD #1:  What, held under the dorsal guiding feathers?
GUARD #2:  Well, why not?
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn