aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2015-08-19 21:44:12 -0400
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2015-08-19 21:44:12 -0400
commite94f322eca85076f3e374f22d2e54a2a929a0199 (patch)
tree7d41d0c87d7a01241a5f5c4bdf38a490d76650e9 /Makefile
parentfix test to check for execute bit when we plan to execute (diff)
downloadgenkernel-e94f322eca85076f3e374f22d2e54a2a929a0199.tar.gz
genkernel-e94f322eca85076f3e374f22d2e54a2a929a0199.tar.bz2
genkernel-e94f322eca85076f3e374f22d2e54a2a929a0199.zip
add a target for make distclean
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 79d3be9..dafda0e 100644
--- a/Makefile
+++ b/Makefile
@@ -24,8 +24,7 @@ check-git-repository:
git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; }
git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; }
-dist: check-git-repository $(EXTRA_DIST)
- rm -Rf "$(distdir)" "$(distdir)".tar "$(distdir)".tar.xz
+dist: check-git-repository $(EXTRA_DIST) distclean
mkdir "$(distdir)"
git ls-files -z | xargs -0 cp --no-dereference --parents --target-directory="$(distdir)" \
$(EXTRA_DIST)
@@ -33,4 +32,7 @@ dist: check-git-repository $(EXTRA_DIST)
xz -v "$(distdir)".tar
rm -Rf "$(distdir)"
-.PHONY: clean check-git-repository dist
+distclean: clean
+ rm -Rf "$(distdir)" "$(distdir)".tar "$(distdir)".tar.xz
+
+.PHONY: clean check-git-repository dist distclean