[Top][All Lists]

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

Re: The bugs in make v3.82

From: Paul Smith
Subject: Re: The bugs in make v3.82
Date: Wed, 29 Sep 2010 09:32:30 -0400

Please send all questions to the mailing list, rather than emailing me
personally.  Thanks!

On Wed, 2010-09-29 at 12:43 +0400, Alexander Kornilov wrote:
> 1) Are the special target which executed before all other target? It's
> maybe used for some initializations and preparing of build process
> (e.g. remove log files from previous build).

No.  But you can fake it with the trick I mentioned in my last email,
using $(shell ...) in an immediate context:

        __dummy := $(shell <whatever>)

Here, <whatever> will always be executed before any rule is attempted.
You can leave out the variable assignment if you're sure the script will
not generate any output to stdout.

> 2) Are the special target which executed when error was occurred? It's
> maybe helpful to display detailed log when error was occurred while
> compilation. 


 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "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]