> -----Original Message-----
> From: Paul Smith [mailto:[EMAIL PROTECTED] On Behalf Of Paul D. Smith
> Sent: 26. marts 2005 16:48
> To: Casper Hornstrup
> Cc: [email protected]
> Subject: RE: Dependencies on directories on NTFS volumes
> 
> If you don't mind all the directories being created, you can just use
> $(shell ...) to do it.  That's how I always do it:
> 
>     DIRECTORIES += foo bar baz
> 
>         ...
> 
>     __dummy := $(shell for d in $(DIRECTORIES); do [ -d $$d ] || mkdir -p 
> $$d; done)
> 
> I guess if you're using windows you might need to do something more
> complicated.  Anyway, when the shell function is used in an "immediate
> evaluation" context, it's run right then before any of the rest of the
> makefile is parsed.
> 

I see. It just seems overkill to create ~1000 directories on every make 
invocation.

> An alternative is to use order-only prerequisites to get the directories
> created; since they're order-only they won't cause the targets to be
> rebuilt.

I don't understand this.

Casper




_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to