From: Cristian Stoica Date: Mon, 16 May 2016 13:10:24 +0000 (+0300) Subject: do not remove links found in .git directory X-Git-Tag: OpenSSL_1_1_0-pre6~830 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b4d0e3c1ed556b890b93d8326978a6a90cfc0fe;p=thirdparty%2Fopenssl.git do not remove links found in .git directory Some setups use links inside .git directory and make clean should not remove them to avoid breaking git meta-information. Signed-off-by: Cristian Stoica CLA: none; trivial Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/1078) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index ea3b7083e6..a31867ed32 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -259,7 +259,7 @@ clean: libclean 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'