summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2013-02-08 15:18:02 +0100
committerJohn Kacur <jkacur@redhat.com>2013-02-15 14:46:10 +0100
commitd29d951dbe3c9ae8144f9a25f37f4009302f675d (patch)
treeec9ea9687fc59aec88264853a8e19d3469ce9f95
parent0918c34effecae2c21b3eb28fb6d3712dc751863 (diff)
downloadrt-tests-d29d951dbe3c9ae8144f9a25f37f4009302f675d.tar.gz
Makefile: Add tmp dir to distclean and "make release" call distclean
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> Reviewed-by: Frank Rowand <frank.rowand@am.sony.com> Tested-by: Frank Rowand <frank.rowand@am.sony.com>
-rw-r--r--Makefile6
1 files 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