Add targets and improve existing in Makefile

master
blallo 2020-04-30 14:02:09 +02:00
parent 27a1025eba
commit 4de4a4aee2
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 10 additions and 2 deletions

View File

@ -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