mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-29 22:48:31 +00:00
improve 'clean' target of 'src/' makefile
This commit is contained in:
22
src/Makefile
22
src/Makefile
@@ -196,24 +196,12 @@ endif
|
|||||||
|
|
||||||
# clean everything
|
# clean everything
|
||||||
clean:
|
clean:
|
||||||
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
del *.o libraylib.a libraylib.bc
|
||||||
del *.o libraylib.a
|
else
|
||||||
else
|
rm -f *.o libraylib.a libraylib.bc
|
||||||
rm -f *.o libraylib.a
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
@echo "removed all generated files!"
|
||||||
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
|
|
||||||
endif
|
|
||||||
@echo Cleaning done
|
|
||||||
|
|
||||||
# instead of defining every module one by one, we can define a pattern
|
# instead of defining every module one by one, we can define a pattern
|
||||||
# this pattern below will automatically compile every module defined on $(OBJS)
|
# this pattern below will automatically compile every module defined on $(OBJS)
|
||||||
|
Reference in New Issue
Block a user