Commit d573ff17 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Configurations/unix-Makefile.tmpl: address find portability issue.



-path is non-portable extension, fortunately it's possible to express
.git subdirectory exclusion with -prune.

Reviewed-by: default avatarMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7004)
parent 21ebd2fc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -413,13 +413,13 @@ libclean:
clean: libclean
	$(RM) $(PROGRAMS) $(TESTPROGS) $(ENGINES) $(SCRIPTS)
	$(RM) $(GENERATED_MANDATORY) $(GENERATED)
	-$(RM) `find . -name '*{- $depext -}' -a \! -path "./.git/*"`
	-$(RM) `find . -name '*{- $objext -}' -a \! -path "./.git/*"`
	-$(RM) `find . -name .git -prune -o -name '*{- $depext -}' -print`
	-$(RM) `find . -name .git -prune -o -name '*{- $objext -}' -print`
	$(RM) core
	$(RM) tags TAGS doc-nits
	$(RM) -r test/test-runs
	$(RM) openssl.pc libcrypto.pc libssl.pc
	-$(RM) `find . -type l -a \! -path "./.git/*"`
	-$(RM) `find . -name .git -prune -o -type l -print`
	$(RM) $(TARFILE)

distclean: clean