[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making needed Directory
From: |
Jason Lunz |
Subject: |
Re: Making needed Directory |
Date: |
Tue, 11 Apr 2006 15:55:16 +0000 (UTC) |
User-agent: |
slrn/0.9.8.1 (Debian) |
address@hidden said:
> I prefer to do something like this:
>
> MKDIRS += foo
> MKDIRS += bar
> ...
>
> __dummy := $(shell foreach d in $(MKDIRS); do [ -d $$d ] || mkdir -p $$d;
> done)
>
> That is loop is invoked once per invocation of make.
Is there any reason for the __dummy? I have a Makefile that does:
$(shell mkdir -p $(OUTDIR))
and that seems to work fine.
Jason