Module: check_mk
Branch: master
Commit: 7cadb430403ed2e0cae1b79d5b000b02a22d75db
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7cadb430403ed2…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Sep 1 10:37:57 2016 +0200
Improved mrproper target and added a comment.
---
Makefile | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 6acc8fb..70ffc1e 100644
--- a/Makefile
+++ b/Makefile
@@ -72,8 +72,8 @@ FILES_TO_FORMAT := $(wildcard $(addprefix agents/,*.cc *.c *.h)) \
$(wildcard $(addprefix bin/,*.cc *.c *.h))
.PHONY: all analyze check check-binaries check-permissions check-spaces \
- check-version clean cppcheck dist documentation format GTAGS headers \
- healspaces help iwyu minify-js mk-livestatus mrproper \
+ check-version clean cppcheck dist documentation format git-clean \
+ GTAGS headers healspaces help iwyu minify-js mk-livestatus mrproper \
optimize-images packages setup setversion tidy version
all: dist packages
@@ -249,6 +249,11 @@ minify-js:
echo "Missing slimit, not minifying javascript files! (run \"make
setup\" to fix this)" ; \
fi
+# TODO(sp) The target below is not correct, we should not e.g. remove any stuff
+# which is needed to run configure, this should live in a separate target. In
+# fact, we should really clean up all this cleaning-chaos and finally follow the
+# GNU standards here (see "Standard Targets for Users",
+#
https://www.gnu.org/prep/standards/html_node/Standard-Targets.html).
clean:
rm -rf api clang-analyzer compile_commands.json dist.tmp rpm.topdir *.rpm *.deb *.exe \
mk-livestatus-*.tar.gz \
@@ -258,7 +263,11 @@ clean:
find -name "*~" | xargs rm -f
mrproper:
- git clean -xfd -e .bugs 2>/dev/null || git clean -xfd
+ git clean -d --force -x \
+ --exclude='\.bugs/.last' \
+ --exclude='\.bugs/.my_ids' \
+ --exclude='\.werks/.last' \
+ --exclude='\.werks/.my_ids'
setup:
sudo apt-get install figlet pngcrush slimit bear dietlibc-dev