Subject: Re: how to make make(1) run the same target multiple times?
To: None <netbsd-help@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 02/12/2006 19:11:18
On Sun, Feb 12, 2006 at 07:48:44PM +0100, Jukka Salmi wrote:
> Hi,
> 
> I need to run something like
> 
> 	$ make clean
> 	$ make build
> 	$ make clean
> 
> on sources I can't change, but I only want to invoke make(1) once.
> Running
> 
> 	$ make clean build clean
> 
> doesn't work since `clean' is only run once then (why?). And
> unfortunately `build' doesn't depend on `clean'...
> 
> Is it possible to achieve this using a single make command?

Unlikely, make just doesn't work that way.

You can't even do 'make clean .WAIT build' since make ignores .WAIT
on the command line, and .WAIT doesn't work the way that would need
it to either.

	David

-- 
David Laight: david@l8s.co.uk