%% Nicholas Leippe <[EMAIL PROTECTED]> writes:

  nl> On Tuesday 05 November 2002 07:50 pm, you wrote:
  nl> [snip]

  >> But, the short answer is you _never_ want to create directories like
  >> this.  There are many reasons why it's broken.  Search the archives for
  >> this mailing list if you want to see them all.  Instead, use $(shell
  >> ...) to do it:
  >> 
  >> __dummy := $(shell [ -d $(DEST_DIR) ] || mkdir -p $(DEST_DIR))
  >> 
  >> -- 

  nl> I've been doing just this, except I even ommitted the dummy
  nl> assignment and it still seems to work.  Is the dummy assignment
  nl> really necessary?

Depends on what you mean by necessary.

Without it any output to stdout generated by the shell command will be
inserted into your makefile, which will almost certainly become a syntax
error.

As long as you're confident that the script you run will never generate
any output on stdout (or you are happy to receive a syntax error if it
does), then no, the assignment is not necessary :).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          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


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to