aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLelixSuper <emanuele98@openmailbox.org>2016-07-16 20:24:14 +0200
committerLelixSuper <emanuele98@openmailbox.org>2016-07-16 20:24:14 +0200
commite62c30c8b1098d718aa419189c3f86adbe9c9383 (patch)
tree6114c1d18069def07b802eb0aa79a4df6d0a75d1 /src
parent6f335d2c9ea346c44f4000424cc389fd8db6a035 (diff)
downloadraylib-e62c30c8b1098d718aa419189c3f86adbe9c9383.tar.gz
raylib-e62c30c8b1098d718aa419189c3f86adbe9c9383.zip
improve 'clean' target of 'src/' makefile
Diffstat (limited to 'src')
-rw-r--r--src/Makefile22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/Makefile b/src/Makefile
index c294a813..3a45e73e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -196,24 +196,12 @@ endif
# clean everything
clean:
-ifeq ($(PLATFORM),PLATFORM_DESKTOP)
- ifeq ($(PLATFORM_OS),WINDOWS)
- del *.o libraylib.a
- else
- rm -f *.o libraylib.a
- endif
-endif
-ifeq ($(PLATFORM),PLATFORM_WEB)
- ifeq ($(PLATFORM_OS),WINDOWS)
- del *.o libraylib.bc
- else
- rm -f *.o libraylib.bc
- endif
-endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- rm -f *.o libraylib.a
+ifeq ($(PLATFORM_OS),WINDOWS)
+ del *.o libraylib.a libraylib.bc
+else
+ rm -f *.o libraylib.a libraylib.bc
endif
- @echo Cleaning done
+ @echo "removed all generated files!"
# instead of defining every module one by one, we can define a pattern
# this pattern below will automatically compile every module defined on $(OBJS)