[Scons-users] How to make Install depend on a command line target?
Gary Oberbrunner
garyo at oberbrunner.com
Fri Jun 15 09:21:44 EDT 2012
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.
> [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. :-)
--
Gary
More information about the Scons-users
mailing list