Add targets and improve existing in Makefile

This commit is contained in:
Blallo 2020-04-30 14:02:09 +02:00
parent 27a1025eba
commit 4de4a4aee2
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

View file

@ -9,7 +9,15 @@ output:
output/sendmail: output output/sendmail: output
go build -o output/sendmail -ldflags "-X main.version=$(VERSION)" ./... 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: bumpvers-minor:
sed -i"" "s/VERS_MINOR := $(VERS_MINOR)/VERS_MINOR := $(NEW_MINOR)/" Makefile sed -i"" "s/VERS_MINOR := $(VERS_MINOR)/VERS_MINOR := $(NEW_MINOR)/" Makefile
@ -31,4 +39,4 @@ release-maj:
make bumpvers-major make bumpvers-major
make build make build
PHONY: bumpvers-minor bumpvers-major release-min release-maj PHONY: bumpvers-minor bumpvers-major release-min release-maj clean