help-make
[Top][All Lists]
Advanced

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

Re: Making needed Directory


From: Paul D. Smith
Subject: Re: Making needed Directory
Date: Mon, 10 Apr 2006 10:49:08 -0400

%% "EXT-Pennington, Dale K" <address@hidden> writes:

  edk> What I need to do is to create any subdirectories under the main
  edk> directory that a given make needs.

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.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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