From de6ddf7e1b514c4cbf81e3a58138810a5abe9941 Mon Sep 17 00:00:00 2001 From: teru Date: Fri, 16 Mar 2018 11:06:04 +0900 Subject: [PATCH] Simplify PHONY targets --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1e04c4f..f428b3b 100644 --- a/Makefile +++ b/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: