From 354a80dce445a5b26f0500c7699f69c91c07e0e9 Mon Sep 17 00:00:00 2001
From: Utz-Uwe Haus <uhaus@cray.com>
Date: Mon, 2 Nov 2020 16:30:49 +0100
Subject: [PATCH] fix distclean issues

---
 deps/Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/deps/Makefile.am b/deps/Makefile.am
index 03887850..2f935083 100644
--- a/deps/Makefile.am
+++ b/deps/Makefile.am
@@ -42,18 +42,18 @@ dist-hook: dist-clean-protobuf dist-clean-protobuf-c dist-clean-mio
 
 dist-clean-protobuf:
 	if test -f $(distdir)/protobuf/Makefile; then          \
-		chmod +w `find $(distdir)/protobuf -type f`;   \
+		find $(distdir)/protobuf -type f |xargs chmod +x ;   \
                 echo "distclean:" > $(distdir)/protobuf/third-party/googletest/Makefile; \
 		make -C $(distdir)/protobuf distclean;         \
 	fi
 dist-clean-protobuf-c:
 	if test -f $(distdir)/protobuf-c/Makefile; then        \
-		chmod +w `find $(distdir)/protobuf-c -type f`; \
+		find $(distdir)/protobuf-c -type |xargs chmod +x ; \
 		make -C $(distdir)/protobuf-c distclean;       \
 	fi
 dist-clean-mio:
 	if test -f $(distdir)/mio/Makefile; then          \
-		chmod +w `find $(distdir)/mio -type f`;   \
+		find $(distdir)/mio -type f |xargs chmod +x ;   \
 		make -C $(distdir)/mio distclean;         \
 	fi
 		
-- 
GitLab