Browse Source

Add targets and improve existing in Makefile

Blallo 4 years ago
parent
commit
4de4a4aee2
1 changed files with 10 additions and 2 deletions
  1. 10 2
      Makefile

+ 10 - 2
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