浏览代码

improve 'clean' target of 'src/' makefile

pull/134/head
LelixSuper 8 年前
父节点
当前提交
e62c30c8b1
共有 1 个文件被更改,包括 5 次插入17 次删除
  1. +5
    -17
      src/Makefile

+ 5
- 17
src/Makefile 查看文件

@ -196,24 +196,12 @@ endif
# clean everything # clean everything
clean: 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 endif
@echo Cleaning done
@echo "removed all generated files!"
# 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)

正在加载...
取消
保存