Subject: Re: how to make make(1) run the same target multiple times?
To: None <netbsd-help@NetBSD.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-help
Date: 02/13/2006 13:38:04
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
> >
> >
> >
>
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~