[Scons-users] How to create a build rule for a target with no sources
Bill Deegan
bill at baddogconsulting.com
Tue Jan 29 14:01:26 EST 2013
Matt,
On Tue, Jan 29, 2013 at 8:06 AM, M Busche <spammymatt94 at yahoo.com> wrote:
> I'm building up a software distribution package and I want to force the
> creation of an empty directory under my generated distribution directory.
>
> I have two questions:
>
> 1. Is this the simplest way to instantiate a build rule for directory d?
>
> Command("d", "s", Mkdir("$TARGET"))
>
> 2. What if there is no dependency "s", but I'd still like "d" created as
> a build target? What should I be passing for the source parameter?
>
Do you always want it to try to create the directory?
(If you have no source node, then it's always going to be created)
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130129/5d717573/attachment.htm>
More information about the Scons-users
mailing list