linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Henrik Austad <haustad@cisco.com>
To: Josh Cartwright <joshc@ni.com>
Cc: Clark Williams <williams@redhat.com>,
	John Kacur <jkacur@redhat.com>,
	linux-rt-users@vger.kernel.org
Subject: Re: [PATCH 3/7] Add a rebuild-switch to Makefile
Date: Sat, 19 Sep 2015 07:41:27 +0200	[thread overview]
Message-ID: <20150919054127.GA8043@laethe.rd.cisco.com> (raw)
In-Reply-To: <20150918211031.GF31303@jcartwri.amer.corp.natinst.com>

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@cisco.com>
> > ---
> >  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

  reply	other threads:[~2015-09-19  5:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18 16:52 [PATCH 0/7] RFC v1: add support for tilegx and (partial) android support to rt-test Henrik Austad
2015-09-18 16:52 ` [PATCH 1/7] Add CROSS_COMPILE-switch to CC and AR Henrik Austad
2015-09-18 16:52 ` [PATCH 2/7] Add syscall-number for sched_(gs)etattr() for tile Henrik Austad
2015-09-18 16:52 ` [PATCH 3/7] Add a rebuild-switch to Makefile Henrik Austad
2015-09-18 21:10   ` Josh Cartwright
2015-09-19  5:41     ` Henrik Austad [this message]
2015-09-18 16:52 ` [PATCH 4/7] Fix compile-warnings Henrik Austad
2015-09-18 16:52 ` [PATCH 5/7] Makefile: add librttest to rt-migrate-test Henrik Austad
2015-09-18 16:52 ` [PATCH 6/7] rt_test.h: add numa_available() for !NUMA Henrik Austad
2015-09-18 21:27   ` Josh Cartwright
2015-09-19  5:49     ` Henrik Austad
2015-09-18 16:52 ` [PATCH 7/7] android: adjust target for android Henrik Austad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150919054127.GA8043@laethe.rd.cisco.com \
    --to=haustad@cisco.com \
    --cc=jkacur@redhat.com \
    --cc=joshc@ni.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=williams@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).