-@for f in ${LOGFILES}; do test ! -f $$f || mv $$f $$f~; done
rm -f ./*.tmp
+# If 'find' supports -delete, it also supports -path. Otherwise, use
+# -prune and $(FIND_DELETE) instead. -prune is incompatible with -delete.
+ifeq ($(FIND_DELETE),-delete)
+CLEAN_XML_FILES = '(' -name '*.xml' -a ! -path '*resources*' ')' -delete
+else
+CLEAN_XML_FILES = -name '*resources*' -prune -o -name '*.xml' $(FIND_DELETE)
+endif
+
clean:
find . '(' -name '*.log' -o -name '*.log~' ')' $(FIND_DELETE)
- find . '(' -name '*.xml' -a ! -path '*resources*' ')' $(FIND_DELETE)
+ find . $(CLEAN_XML_FILES)
rm -f ${srcdir}/lisp/gnus/mml-sec-resources/random_seed
rm -f $(test_module_dir)/*.o $(test_module_dir)/*.so \
$(test_module_dir)/*.dll gmp.h