$(emacs) -l ert -l $$loadfile \
-f ert-run-tests-batch-and-exit ${WRITE_LOG}
-ELFILES = $(filter-out ./manual%,\
- $(sort $(wildcard ${srcdir}/*.el) $(wildcard ${srcdir}/*/*.el) \
- $(wildcard ${srcdir}/*/*/*.el) $(wildcard ${srcdir}/*/*/*/*.el)))
+ELFILES = $(shell find ${srcdir} -path "./manual" -prune -o \
+ -path "*resources" -prune -o -name "*el" -print)
+ELCFILES = $(patsubst %.el,%.elc,${ELFILES})
LOGFILES = $(patsubst %.el,%.log,${ELFILES})
+LOGSAVEFILES = $(patsubst %.el,%.log~,${ELFILES})
TESTS = $(subst ${srcdir}/,,$(LOGFILES:.log=))
## If we have to interrupt a hanging test, preserve the log so we can
.PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean
clean mostlyclean:
- -rm -f ${srcdir}/*.log ${srcdir}/*.log~ ${srcdir}/*/*.log \
- ${srcdir}/*/*.log~ ${srcdir}/*/*/*.log \
- ${srcdir}/*/*/*.log~
+ -rm -f ${LOGFILES} ${LOGSAVEFILES}
bootstrap-clean: clean
- -rm -f ${srcdir}/*.elc ${srcdir}/*/*.elc ${srcdir}/*/*/*.elc
+ -rm -f ${ELCFILES}
distclean: clean
rm -f Makefile