Re: [PATCH 3/7] Add a rebuild-switch to Makefile

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

 



On Fri, Sep 18, 2015 at 04:10:31PM -0500, Josh Cartwright wrote:
> On Fri, Sep 18, 2015 at 06:52:46PM +0200, Henrik Austad wrote:
> > Signed-off-by: Henrik Austad <haustad@xxxxxxxxx>
> > ---
> >  Makefile | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/Makefile b/Makefile
> > index d4988c5..160547c 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -129,6 +129,9 @@ RPMDIRS = BUILD BUILDROOT RPMS SRPMS SPECS
> >  distclean: clean
> >  	rm -rf $(RPMDIRS) releases *.tar.gz rt-tests.spec tmp
> >  
> > +.PHONY: rebuild
> > +rebuild: clean all
> 
> Does this actually work?  Make is free to execute 'clean' and 'all' at
> the same time, with ... interesting side effects.

You're right. It works as long as you have -j1. Never had an issue as the 
whole make-job is small enough to be run with just 'make rebuild' and not a 
ton of jobs.

> If you really want this (and I'm not sure you do):

Well, it became pretty apparent when I tested to see that I didn't break 
tile or x86 when compiling for 64-bit arm android

> .PHONY: rebuild
> rebuild:
> 	$(MAKE) clean
> 	$(MAKE)

Yep, that works much better, thanks

-- 
Henrik Austad
TIPBU Eng
Cisco Systems Norway
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux