aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-01-04 18:05:50 +0100
committerraysan5 <raysan5@gmail.com>2015-01-04 18:05:50 +0100
commit4a7e522d4bb376d2277895d1d99eb0382f8bbefb (patch)
tree0410f5604cc3cfc036f6c1f3ac4333ac33726660 /examples
parentb2a5390adbfb3f88ecc94e977c56bc00fac4cfbc (diff)
downloadraylib-4a7e522d4bb376d2277895d1d99eb0382f8bbefb.tar.gz
raylib-4a7e522d4bb376d2277895d1d99eb0382f8bbefb.zip
Review build system for Android and RPI1.2.2
Diffstat (limited to 'examples')
-rw-r--r--examples/makefile10
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)