From 4de4a4aee277bcbd36efefee2398a0cea213a324 Mon Sep 17 00:00:00 2001 From: Blallo Date: Thu, 30 Apr 2020 14:02:09 +0200 Subject: [PATCH] Add targets and improve existing in Makefile --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7f9d94a..79e7a08 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,15 @@ output: output/sendmail: output go build -o output/sendmail -ldflags "-X main.version=$(VERSION)" ./... -build: output/sendmail +output/sendmail-dev: output + go build -o output/sendmail-dev ./... + +clean: + rm output/* + +build: clean output/sendmail + +dev-build: clean output/sendmail-dev bumpvers-minor: sed -i"" "s/VERS_MINOR := $(VERS_MINOR)/VERS_MINOR := $(NEW_MINOR)/" Makefile @@ -31,4 +39,4 @@ release-maj: make bumpvers-major make build -PHONY: bumpvers-minor bumpvers-major release-min release-maj +PHONY: bumpvers-minor bumpvers-major release-min release-maj clean