[PATCH] fix out-of-tree cleaning

Mike Frysinger vapier at gentoo.org
Sun Apr 8 14:13:54 WST 2012


# HG changeset patch
# User Mike Frysinger <vapier at gentoo.org>
# Date 1333865214 14400
# Node ID 3aad6aee33067c0dba83083b559e32f74bcb4a36
# Parent  44f6add4e5d0bb336f3d9e2dea6adee00b047b97
fix out-of-tree cleaning

If we build out of tree and then run `make clean`, we hit an
infinite loop where libtommath tries to enter subdirs that don't
exist and run `make clean`.

diff -r 44f6add4e5d0 -r 3aad6aee3306 libtommath/Makefile.in
--- a/libtommath/Makefile.in	Sun Apr 08 01:50:52 2012 -0400
+++ b/libtommath/Makefile.in	Sun Apr 08 02:06:54 2012 -0400
@@ -170,8 +170,8 @@
 	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
+	-cd etc && MAKE=${MAKE} ${MAKE} clean
+	-cd pics && MAKE=${MAKE} ${MAKE} clean
 
 #zipup the project (take that!)
 no_oops: clean


More information about the Dropbear mailing list