diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/makefile b/examples/makefile index 4771d94d..9763b233 100644 --- a/examples/makefile +++ b/examples/makefile @@ -32,7 +32,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(OS),Windows_NT) SUBPLATFORM=WINDOWS else - UNAMEOS = $(shell uname -s) + UNAMEOS:=$(shell uname) ifeq ($(UNAMEOS),Linux) SUBPLATFORM=LINUX else @@ -290,17 +290,19 @@ audio_music_stream: audio_music_stream.c # clean everything clean: ifeq ($(PLATFORM),PLATFORM_DESKTOP) + ifeq ($(SUBPLATFORM),OSX) + rm -f *.o + else ifeq ($(SUBPLATFORM),LINUX) find . -type f -executable -delete rm -f *.o - endif - ifeq ($(SUBPLATFORM),OSX) - rm -f *.o else del *.o *.exe endif + endif endif ifeq ($(PLATFORM),PLATFORM_RPI) + find . -type f -executable -delete rm -f *.o endif ifeq ($(PLATFORM),PLATFORM_WEB) |
