Hi John,
I do not have the luxury of using mkdir command for this.
It is a proprietary tool command that creates a dir. and puts
some information in it. And it does not provide any option to check
if the directory already exists.
At the end of your article I saw "test -d $(@D) || mkdir -p $(@D)" ..
I think if I replace mkdir -p with the tool command, it should solve
my problem.
Thanks ..
From: John Graham-Cumming <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: sharan basappa <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: execute command if a dir does not exist
Date: Mon, 05 Feb 2007 09:57:48 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sharan basappa wrote:
> Background : The tool I am using stores its internal information in a
> directory.
> The very first time, we are supposed to create this directory using
tool's
> command. But this is only the first time alone.
>
> Question : How can I write a rule such that a specific command is
> executed if
> a directory does not exist under directory from which make is getting
> executed.
This topics comes up a lot, I wrote an article summarizing many of the
options:
http://www.cmcrossroads.com/content/view/6936/120/
John.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFxvGLLphrp73n/hARAreTAKCbJacacWAmlFfoFC8bHNgNkRhdUgCfWL0v
O64iDHoGdaoKnnwXNt3MKOc=
=THMu
-----END PGP SIGNATURE-----
_________________________________________________________________
Tickle your funny bone with Rahul Phondke
http://content.msn.co.in/Lifestyle/Moreonlifestyle/LifestyleFB_101106_1455.htm
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make