From 1b4d0e3c1ed556b890b93d8326978a6a90cfc0fe Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Mon, 16 May 2016 16:10:24 +0300 Subject: [PATCH] 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) --- Configurations/unix-Makefile.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.25.1