summaryrefslogtreecommitdiff
path: root/cruft.mak
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-04-09 09:23:15 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-04-09 09:23:15 +0100
commit6eeb3c423ca5702bf1bd660b7c826b835b735286 (patch)
tree769ad66b65b12431d6184defb74ed5f957a54398 /cruft.mak
parent75e68803a10104ada0017f1635da447852ebb83e (diff)
downloadgstreamer-common-6eeb3c423ca5702bf1bd660b7c826b835b735286.tar.gz
cruft.mak: add make rule to remove cruft
Diffstat (limited to 'cruft.mak')
-rw-r--r--cruft.mak17
1 files changed, 17 insertions, 0 deletions
diff --git a/cruft.mak b/cruft.mak
index 60176c5..53eec24 100644
--- a/cruft.mak
+++ b/cruft.mak
@@ -30,8 +30,25 @@ check-cruft:
echo; \
for d in $$cruft_dirs; do echo "directory $$d"; done; \
echo; \
+ echo "'make clean-cruft' will remove these for you."; \
+ echo; \
fi
+clean-cruft-dirs:
+ @for d in $(CRUFT_DIRS); do \
+ if test -e $$d; then \
+ rm -r "$$d" && echo "Removed directory $$d"; \
+ fi \
+ done
+
+clean-cruft-files:
+ @for f in $(CRUFT_FILES); do \
+ if test -e $$f; then \
+ rm "$$f" && echo "Removed file $$f"; \
+ fi \
+ done
+
+clean-cruft: clean-cruft-dirs clean-cruft-files
# also might want to add this to your Makefile.am:
#