public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: John Kacur <jkacur@redhat.com>
To: Clark Williams <williams@redhat.com>
Cc: Frank Rowand <frank.rowand@am.sony.com>,
	rt-users <linux-rt-users@vger.kernel.org>,
	John Kacur <jkacur@redhat.com>
Subject: [PATCH RT-TESTS 2/3] Makefile: Add tmp dir to distclean and "make release" call distclean
Date: Fri,  8 Feb 2013 15:47:34 +0100	[thread overview]
Message-ID: <1360334855-10176-3-git-send-email-jkacur@redhat.com> (raw)
In-Reply-To: <1360334855-10176-1-git-send-email-jkacur@redhat.com>

From: John Kacur <jkacur@redhat.com>

The files in the tmp dir are generated during make release.
These are the kind of generated files that should be removed for distclean,
So add tmp. make release can be slightly simplified by then depending
on distclean instead of clean.

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 3b637c5..ecc7386 100644
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,7 @@ clean:
 
 .PHONY: distclean
 distclean: clean
-	rm -rf BUILD RPMS SRPMS releases *.tar.gz rt-tests.spec
+	rm -rf BUILD RPMS SRPMS releases *.tar.gz rt-tests.spec tmp
 
 .PHONY: changelog
 changelog:
@@ -143,9 +143,9 @@ install: all
 	gzip src/hackbench/hackbench.8 -c >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz"
 
 .PHONY: release
-release: clean changelog
+release: distclean changelog
 	mkdir -p releases
-	rm -rf tmp && mkdir -p tmp/rt-tests
+	mkdir -p tmp/rt-tests
 	cp -r Makefile COPYING ChangeLog src tmp/rt-tests
 	tar -C tmp -czf rt-tests-$(VERSION_STRING).tar.gz rt-tests
 	rm -f ChangeLog
-- 
1.7.11.7


  parent reply	other threads:[~2013-02-08 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-08 14:47 [PATCH RT-TESTS 0/3] A few Makefile clean-ups John Kacur
2013-02-08 14:47 ` [PATCH RT-TESTS 1/3] Makefile: Don't tag tmp files created when making a release John Kacur
2013-02-08 14:47 ` John Kacur [this message]
2013-02-08 14:47 ` [PATCH RT-TESTS 3/3] Makefile: Add BUILDROOT and SPECS to the dirs to remove for distclean John Kacur
2013-02-08 23:07 ` [PATCH RT-TESTS 0/3] A few Makefile clean-ups Frank Rowand

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=1360334855-10176-3-git-send-email-jkacur@redhat.com \
    --to=jkacur@redhat.com \
    --cc=frank.rowand@am.sony.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