make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dependencies on directories on NTFS volumes


From: Casper Hornstrup
Subject: RE: Dependencies on directories on NTFS volumes
Date: Sat, 26 Mar 2005 19:02:50 +0100


> -----Original Message-----
> From: Paul Smith [mailto:address@hidden On Behalf Of Paul D. Smith
> Sent: 26. marts 2005 16:48
> To: Casper Hornstrup
> Cc: address@hidden
> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]