summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2013-02-08 15:27:24 +0100
committerJohn Kacur <jkacur@redhat.com>2013-02-15 14:46:35 +0100
commitcc7b99bf4e533a061b30becee9d51552bc3b908b (patch)
tree5cbe9aaea12e725ee8769b8eeeba389a031eb78f
parentd29d951dbe3c9ae8144f9a25f37f4009302f675d (diff)
downloadrt-tests-cc7b99bf4e533a061b30becee9d51552bc3b908b.tar.gz
Makefile: Add BUILDROOT and SPECS to the dirs to remove for distclean
make rpm creates the dirs BUILDROOT and SPECS that are missed by distclean. Gather all rpm related DIRS to the RPMDIRS and add that to distclean. 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--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ecc7386..25cfbfb 100644
--- a/Makefile
+++ b/Makefile
@@ -111,9 +111,10 @@ clean:
rm -f hwlatdetect
rm -f tags
+RPMDIRS = BUILD BUILDROOT RPMS SRPMS SPECS
.PHONY: distclean
distclean: clean
- rm -rf BUILD RPMS SRPMS releases *.tar.gz rt-tests.spec tmp
+ rm -rf $(RPMDIRS) releases *.tar.gz rt-tests.spec tmp
.PHONY: changelog
changelog: