From c6831f98e0c19815304ff0308a95c341f13619e9 Mon Sep 17 00:00:00 2001 From: Vladimir Avtsenov Date: Fri, 14 Feb 2025 20:55:47 +0300 Subject: [PATCH] clear stage --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 25e999a..0718d7c 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,10 @@ PKG_DIR = $(BUILD_DIR)/$(ARCH) BIN_DIR = $(PKG_DIR)/data/opt/bin PARAMS = -v -a -trimpath -ldflags="-X 'magitrickle/constant.Version=$(VERSION)' -X 'magitrickle/constant.Commit=$(COMMIT)' -w -s" -all: build_daemon package +all: clear build_daemon package + +clear: + rm -rf $(PKG_DIR) build_daemon: GOOS=$(GOOS) GOARCH=$(GOARCH) GOMIPS=$(GOMIPS) GOARM=$(GOARM) go build $(PARAMS) -o $(BIN_DIR)/magitrickled ./cmd/magitrickled