diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-04-09 09:23:15 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-04-09 09:23:15 +0100 |
commit | 6eeb3c423ca5702bf1bd660b7c826b835b735286 (patch) | |
tree | 769ad66b65b12431d6184defb74ed5f957a54398 /cruft.mak | |
parent | 75e68803a10104ada0017f1635da447852ebb83e (diff) | |
download | gstreamer-common-6eeb3c423ca5702bf1bd660b7c826b835b735286.tar.gz |
cruft.mak: add make rule to remove cruft
Diffstat (limited to 'cruft.mak')
-rw-r--r-- | cruft.mak | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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: # |