Преглед на файлове

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...
pull/963/head
chriscamacho преди 5 години
committed by Ray
родител
ревизия
dde1e0671f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      examples/Makefile

+ 1
- 1
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

Зареждане…
Отказ
Запис