Port ‘make clean’ to Solaris 10

* test/Makefile.in (CLEAN_XML_FILES): New macro.
(clean): Use it.
This commit is contained in:
Paul Eggert 2022-06-25 16:45:28 -05:00
parent 4410f5d869
commit 78c0c8673b

View file

@ -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