Re: scons copyto /path/to/project

anatoly techtonik <[email protected]> Mon, 7 Sep 2020 17:33:15 +0300
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <CAPkN8xK_nXM22KbNqe++H-wZM3nAzE1jBn0KMXNbpjZCDguuWQ@mail.gmail.com>
On Sun, Sep 6, 2020 at 7:12 PM Mats Wichmann <[email protected]> wrote:
> >
> > Is it possible to create a build command that will copy
> > SCons local to the target directory?
> >
> >     SCons/ -> /path/to/project/SCons/
> >     scripts/scons.py -> /path/to/project/scons
> >
> > I haven't used SCons for a while and I don't remember
> > how to create phony target "copyto" and handle path
> > parameter to it.
>
> Phony targets are Alias.
> Copying stuff usually involves some combination of Install and Default.
>
> If that's what you are asking...

Yup, thanks. I created a target that copies `scripts/scons.py` to `scons`,
which is invoked as `scons copyto`:

    Command('scons', [], Copy('$TARGET', 'scripts/scons.py'))
    Alias('copyto', 'scons')

Now how to parse `/path/to/project` param to `copyto`?
-- 
anatoly t.