change clean command

This commit is contained in:
CrackedPixel 2026-02-20 18:50:03 -06:00
parent c519e9f566
commit 4ba19625e2

View File

@ -766,20 +766,20 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
del *.o *.exe /s del *.o *.exe /s
endif endif
ifeq ($(PLATFORM_OS),BSD) ifeq ($(PLATFORM_OS),BSD)
find . -type f -perm -ugo+x -delete find . -type f -executable -exec file {} + 2>/dev/null | grep 'executable' | cut -d: -f1 | xargs -r rm
rm -fv *.o rm -fv *.o
endif endif
ifeq ($(PLATFORM_OS),LINUX) ifeq ($(PLATFORM_OS),LINUX)
find . -type f -executable -delete find . -type f -executable -exec file {} + 2>/dev/null | grep 'executable' | cut -d: -f1 | xargs -r rm
rm -fv *.o rm -fv *.o
endif endif
ifeq ($(PLATFORM_OS),OSX) ifeq ($(PLATFORM_OS),OSX)
find . -type f -perm +ugo+x -delete find . -type f -executable -exec file {} + 2>/dev/null | grep 'executable' | cut -d: -f1 | xargs -r rm
rm -f *.o rm -f *.o
endif endif
endif endif
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM) ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
find . -type f -executable -delete find . -type f -executable -exec file {} + 2>/dev/null | grep 'executable' | cut -d: -f1 | xargs -r rm
rm -fv *.o rm -fv *.o
endif endif
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW)) ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))