From dde1e0671ffd71582e3ec2b1e09bcd422d829591 Mon Sep 17 00:00:00 2001 From: chriscamacho Date: Tue, 27 Aug 2019 18:58:49 +0100 Subject: [PATCH] examples makefile not deleting examples in Linux (#955) I'm not sure why the clean command is so complex (especially given that find -type f -executable | xargs rm -fv works!) but I fixed the version as is, to support x-pie-executable which was preventing it deleting anything on my system... --- examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index f57888ace..ce02d55fa 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -471,7 +471,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) del *.o *.exe /s endif ifeq ($(PLATFORM_OS),LINUX) - find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -fv + find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable|x-pie-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -fv endif ifeq ($(PLATFORM_OS),OSX) find . -type f -perm +ugo+x -delete