From b8400f0ec34281dc53e4909ed353cdd74c09f65c Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:00:29 +0300 Subject: [PATCH] feat: add cleartmp command to makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4002055..33b103a 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,8 @@ else ifeq ($(profile),debug) flags += -g ldflags+= -Wl,-rpath=bin/debug endif -oldbin := bin + +oldbin := $(bin) export bin := $(bin)/$(profile) ifeq ($(os),Windows) @@ -54,6 +55,8 @@ build: version echo Done! clear: if exist $(subst /,\,$(oldbin)) rmdir /s /q $(subst /,\,$(oldbin)) +cleartmp: + if exist $(subst /,\,$(bin)/tmp) rmdir /s /q $(subst /,\,$(bin)/tmp) .ONESHELL: install: build @@ -82,6 +85,9 @@ build: version clear: rm -r $(oldbin) +clear: + rm -r $(bin)/tmp + install: build echo Installing ++C compiler to your system...