1 # checks for left-over files in the (usually uninstalled) tree, ie. for
2 # stuff that best be deleted to avoid problems like having old plugin binaries
5 # set CRUFT_FILES and/or CRUFT_DIRS in your Makefile.am when you include this
8 @cruft_files=""; cruft_dirs=""; \
9 for f in $(CRUFT_FILES); do \
10 if test -e $$f; then \
11 cruft_files="$$cruft_files $$f"; \
14 for d in $(CRUFT_DIRS); do \
15 if test -e $$d; then \
16 cruft_dirs="$$cruft_dirs $$d"; \
19 if test "x$$cruft_files$$cruft_dirs" != x; then \
21 echo "**** CRUFT ALERT *****"; \
23 echo "The following files and directories may not be needed any "; \
24 echo "longer (usually because a plugin has been merged into "; \
25 echo "another plugin, moved to a different module, or been "; \
26 echo "renamed), and you probably want to clean them up if you "; \
27 echo "don't have local changes: "; \
29 for f in $$cruft_files; do echo "file $$f"; done; \
31 for d in $$cruft_dirs; do echo "directory $$d"; done; \
36 # also might want to add this to your Makefile.am:
38 # all-local: check-cruft