commit: e94f322eca85076f3e374f22d2e54a2a929a0199 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> AuthorDate: Thu Aug 20 01:44:12 2015 +0000 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Thu Aug 20 01:44:12 2015 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e94f322e
add a target for make distclean Makefile | 8 +++++--- 1 file 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