summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-03-30 11:51:04 +0100
committerDaniel Borkmann <dborkman@redhat.com>2013-03-30 11:51:04 +0100
commit3107cf8c5c9604844827831b28d585c558504166 (patch)
tree8d023d8d15db0506661d4feec64e056923683153 /Makefile
parent367efea8c9ba557a81158a69ecee267706a520eb (diff)
make: when mrproper, also remove Git tree unrelated files
When we really clean up everything, also remove crap files that do not belong to the Git tree. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2781c00..d414ba9 100644
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,7 @@ GIT_ARCHIVE = git archive --prefix=netsniff-ng-$(VERSION_STRING)/ $(VERSION_STRI
$(1) > ../netsniff-ng-$(VERSION_STRING).tar.$(2)
GIT_TAG = git tag -a $(VERSION_STRING) -s -m "tools: $(VERSION_STRING) release"
GIT_LOG = git shortlog -n --not $(shell git describe --abbrev=0 --tags)
+GIT_REM = git ls-files -o | xargs rm -rf
export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION
export CROSS_COMPILE
@@ -192,6 +193,7 @@ realclean distclean clobber: $(foreach tool,$(TOOLS),$(tool)_distclean)
$(Q)$(call RMDIR,$(DOCDIRE))
$(Q)$(call RMDIR,$(ETCDIRE))
mrproper: clean distclean
+ $(Q)$(GIT_REM)
define TOOL_templ
include $(1)/Makefile