mirror of
https://github.com/directorz/mailfull-go.git
synced 2025-12-17 17:47:04 +00:00
Simplify PHONY targets
This commit is contained in:
7
Makefile
7
Makefile
@@ -9,10 +9,11 @@ DIR_RELEASE=release
|
||||
VERSION=$(patsubst "%",%,$(lastword $(shell grep 'const Version' version.go)))
|
||||
GITTAG=$(shell git rev-parse --short HEAD)
|
||||
|
||||
.PHONY: build build-linux-amd64 build-linux-386 clean
|
||||
|
||||
default: build
|
||||
|
||||
FORCE:
|
||||
.PHONY: FORCE
|
||||
|
||||
$(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep:
|
||||
mkdir -p /tmp/go
|
||||
GOPATH=/tmp/go go get -d -v github.com/golang/dep
|
||||
@@ -24,7 +25,7 @@ dep: $(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep
|
||||
installdeps: dep
|
||||
$(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep ensure -v -vendor-only
|
||||
|
||||
build:
|
||||
build: FORCE
|
||||
go build -v -i -ldflags "-X main.gittag=$(GITTAG)" -o $(DIR_BUILD)/mailfull_$(GOOS)_$(GOARCH)/mailfull cmd/mailfull/*.go
|
||||
|
||||
.build-docker:
|
||||
|
||||
Reference in New Issue
Block a user