do not remove links found in .git directory
[openssl.git] / Configurations / unix-Makefile.tmpl
index ea3b7083e6b8a62da4b8ac5d751df0b2ece79929..a31867ed3203947d9ba70cdee5d9eeed88a46a0a 100644 (file)
@@ -259,7 +259,7 @@ clean: libclean
        rm -f core
        rm -f tags TAGS
        rm -f openssl.pc libcrypto.pc libssl.pc
        rm -f core
        rm -f tags TAGS
        rm -f openssl.pc libcrypto.pc libssl.pc
-       -rm -f `find . -type l`
+       -rm -f `find . -type l -a \! -path "./.git/*"`
        rm -f $(TARFILE)
 
 # This exists solely for those who still type 'make depend'
        rm -f $(TARFILE)
 
 # This exists solely for those who still type 'make depend'