fixed and simplified make clean for examples on Linux (#375)

This commit is contained in:
Lieven Petersen 2024-02-03 20:00:57 +01:00 committed by GitHub
parent 418da225d5
commit 7fe39be75a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -375,7 +375,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
del *.o *.exe /s del *.o *.exe /s
endif endif
ifeq ($(PLATFORM_OS),LINUX) 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 rm -f $(EXAMPLES)
endif endif
ifeq ($(PLATFORM_OS),OSX) ifeq ($(PLATFORM_OS),OSX)
find . -type f -perm +ugo+x -delete find . -type f -perm +ugo+x -delete