[PATCH 1/2] Clean up: libtommath/Makefile.in: Remove the `clean' target

Michael Witten mfwitten at gmail.com
Wed Jul 12 12:55:00 AWST 2017


The file `libtommath/makefile.include', which is supplied by the
libtommath sources, already supplies its own `clean' target; besides
the fact that GNU `make' frowns upon multiple recipes for the same
target, it is likely the case that libtommath's own `clean' target
is worth using.

Indeed, the version of `clean' that appears in `Makefile.in' is
clearly a modified version of what appears in `makefile.include';
while the alterations are probably an improvement, they aren't so
worthwhile as to justify multiple definitions. One discrepancy of
note, though, is that the `Makefile.in' version lists `*.pdf' as
files to be deleted, while the other one does not, yet this doesn't
seem to make a difference.
---
 libtommath/Makefile.in | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libtommath/Makefile.in b/libtommath/Makefile.in
index 9061219..2fec4ce 100644
--- a/libtommath/Makefile.in
+++ b/libtommath/Makefile.in
@@ -169,13 +169,6 @@ manual:	mandvi
 pretty:
 	perl pretty.build
 
-clean:
-	rm -f *.bat *.pdf *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test ltmtest mpitest mtest/mtest mtest/mtest.exe \
-        *.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
-	-cd etc && MAKE=${MAKE} ${MAKE} clean
-	-cd pics && MAKE=${MAKE} ${MAKE} clean
-
 #\zipup the project (take that!)
 no_oops: clean
 	cd .. ; cvs commit
-- 
2.10.0



More information about the Dropbear mailing list