[Top][All Lists]

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

Re: Parallel gmake problem

From: Paul D. Smith
Subject: Re: Parallel gmake problem
Date: Wed, 6 Nov 2002 16:21:40 -0500

%% Nicholas Leippe <address@hidden> 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

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 <address@hidden>          Find some GNU make tips at:            
 "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]