[Scons-users] How to make Install depend on a command line target?
Brian Raven
BRaven at nyx.com
Fri Jun 15 10:21:39 EDT 2012
> -----Original Message-----
> From: scons-users-bounces at scons.org [mailto:scons-users-
> bounces at scons.org] On Behalf Of Gary Oberbrunner
> Sent: 15 June 2012 14:22
> To: SCons users mailing list
> Subject: Re: [Scons-users] How to make Install depend on a command line
> target?
>
> On Fri, Jun 15, 2012 at 7:30 AM, Brian Raven <BRaven at nyx.com> wrote:
> > I thought that the suggestion in the wiki
> (http://scons.org/wiki/InstallTargets) might do the trick. For example:
> >
> > Alias('broadcast', localEnv.Install(install_dir, programs))
> >
> > However, the programs are always installed. Am I missing something,
> or is there a way to make the install depend on a command line target,
> other than explicitly testing COMMAND_LINE_TARGETS?
>
> I suspect what's going on is your SConstruct/script doesn't specify
> Default(), so when you don't specify any targets on the command line
> SCons builds everything under "." (the current dir). If your
> install_dir is under . then that's most likely it. To fix, use
> Default() to specify the desired default targets when nothing's
> specified on the cmd line.
OK, that makes sense. I'll give that a try. Thanks.
>
> > [N.B. Using a pretty old version, v0.98.1.r2881. Not much choice in
> > the matter.]
>
> Wow, that's pretty ancient. Could you just install a new version
> locally in your home dir or something? Anyway, probably not related to
> this issue. I just feel sorry for you. :-)
I can do that, but many of the others in the global development team do not have the necessary permissions. They are the ones to feel sorry for.
--
Brian Raven
Please consider the environment before printing this e-mail.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.
Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the Scons-users
mailing list