Add targets and improve existing in Makefile
This commit is contained in:
parent
27a1025eba
commit
4de4a4aee2
1 changed files with 10 additions and 2 deletions
12
Makefile
12
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue