feat: add cleartmp command to makefile

This commit is contained in:
TopchetoEU 2022-10-28 11:00:29 +03:00
parent 19c8af768b
commit b8400f0ec3

View File

@ -30,7 +30,8 @@ else ifeq ($(profile),debug)
flags += -g flags += -g
ldflags+= -Wl,-rpath=bin/debug ldflags+= -Wl,-rpath=bin/debug
endif endif
oldbin := bin
oldbin := $(bin)
export bin := $(bin)/$(profile) export bin := $(bin)/$(profile)
ifeq ($(os),Windows) ifeq ($(os),Windows)
@ -54,6 +55,8 @@ build: version
echo Done! echo Done!
clear: clear:
if exist $(subst /,\,$(oldbin)) rmdir /s /q $(subst /,\,$(oldbin)) if exist $(subst /,\,$(oldbin)) rmdir /s /q $(subst /,\,$(oldbin))
cleartmp:
if exist $(subst /,\,$(bin)/tmp) rmdir /s /q $(subst /,\,$(bin)/tmp)
.ONESHELL: .ONESHELL:
install: build install: build
@ -82,6 +85,9 @@ build: version
clear: clear:
rm -r $(oldbin) rm -r $(oldbin)
clear:
rm -r $(bin)/tmp
install: build install: build
echo Installing ++C compiler to your system... echo Installing ++C compiler to your system...