Commit 8825ab60641bf4ffab86761b79dfd34179d3e82b

Steffen Jaeckel 2019-10-09T17:18:56

improve `clean` make-target

diff --git a/etc/makefile b/etc/makefile
index c7280e7..85bb09e 100644
--- a/etc/makefile
+++ b/etc/makefile
@@ -39,5 +39,6 @@ mont: mont.o
 clean:
 	rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime mont 2kprime pprime.dat \
         tuning_list multiplying squaring test *.da *.dyn *.dpi *~
+	rm -rf .libs
 
 .PHONY: tune
diff --git a/makefile_include.mk b/makefile_include.mk
index df0adf8..cdf0fa7 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -158,8 +158,9 @@ cleancov-clean:
 cleancov: cleancov-clean clean
 
 clean:
-	rm -f *.gcda *.gcno *.gcov *.bat *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/test.o demo/main.o demo/opponent.o test timing mpitest mtest/mtest mtest/mtest.exe tuning_list\
-        *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.da *.dyn *.dpi tommath.tex `find . -type f | grep [~] | xargs` *.lo *.la
-	rm -rf .libs/
+	rm -f *.gcda *.gcno *.gcov *.bat *.o *.a *.obj *.lib *.exe *.dll etclib/*.o \
+				demo/*.o test timing mtest_opponent mtest/mtest mtest/mtest.exe tuning_list \
+				*.s mpi.c *.da *.dyn *.dpi tommath.tex `find . -type f | grep [~] | xargs` *.lo *.la
+	rm -rf .libs/ demo/.libs
 	${MAKE} -C etc/ clean MAKE=${MAKE}
 	${MAKE} -C doc/ clean MAKE=${MAKE}