Fix find/rm command in Unix clean recipe
authorTanzinul Islam <t_17_7@hotmail.com>
Fri, 25 Oct 2019 16:47:25 +0000 (17:47 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 31 Oct 2019 10:37:01 +0000 (10:37 +0000)
commitac613b900694243edb2808f6df5f6072f2f0a5b9
tree4385b82515c4716277baaff91c2971abf0f016a5
parent43a8f91f00e35b20e33c393f5b79215c277c508e
Fix find/rm command in Unix clean recipe

The `./pyca-cryptography/.travis/downstream.d` subdirectory that causes the `rm` command to fail (albeit harmlessly, but with a warning from `make` nonetheless).

>rm -f `find . -name '*.d' \! -name '.*' -print`
>rm: cannot remove './pyca-cryptography/.travis/downstream.d': Is a directory
>make: [Makefile:1910: clean] Error 1 (ignored)

Exclude directories from being matched by the `find` commands.

CLA: trivial

Reviewed-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10264)

(cherry picked from commit 38b71bd4704ee1746e862f5a7a4e170fd84a5eb0)
Configurations/unix-Makefile.tmpl