Subject: Re: how to make make(1) run the same target multiple times?
To: None <netbsd-help@NetBSD.org>
From: Sigmund Skjelnes <skjelnes@robin.no>
List: netbsd-help
Date: 02/13/2006 17:22:46
Oops, let me first correct an error as mr. Ivanov pointed out:
make clean && make build && make clean

&& is supported by sh, bash and I'd suppose many others.

Cincerely,
Sigmund

Jukka Salmi wrote:

>Sigmund Skjelnes --> netbsd-help (2006-02-12 23:25:33 +0100):
>  
>
>>try make clean ;; make build ;; make clean
>>
>>The ;; command is a shell script command that executes the two operands 
>>and returns 0 if both commands returned false, or -1 if one did not. If 
>>the leftmost operand returned any other value than 0, the rightmost 
>>won't be executed. However, do consult the documentation for your 
>>favorite shell, as I'm not an shell script expert.
>>    
>>
>
>Hmm, which shell are you talking about?
>
>
>  
>
>>Sincerely,
>>Sigmund
>>
>>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?
>>>
>>>
>>>TIA, Jukka
>>>
>>>
>>>
>>>      
>>>
>
>  
>