From: Paul Eggert Date: Sat, 25 Jun 2022 21:45:28 +0000 (-0500) Subject: Port ‘make clean’ to Solaris 10 X-Git-Tag: emacs-29.0.90~1447^2~1462 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=78c0c8673bba086842ef9ea57f44f446558e5ebf;p=emacs.git Port ‘make clean’ to Solaris 10 * test/Makefile.in (CLEAN_XML_FILES): New macro. (clean): Use it. --- diff --git a/test/Makefile.in b/test/Makefile.in index 67162c48838..0be5842512f 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -341,9 +341,17 @@ mostlyclean: -@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