From 029265f67c58c4c73c0ff712d5f5817e1b7407dd Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 13 Jan 2017 03:53:00 +0000 Subject: [PATCH] Makefile: remove FORCE dependency Signed-off-by: Akihiro Suda --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c58f64a..5e2e3eb 100644 --- a/Makefile +++ b/Makefile @@ -95,12 +95,12 @@ integration: ## run integration tests @echo "🐳 $@" @go test ${TESTFLAGS} ${INTEGRATION_PACKAGE} -FORCE: # Build a binary from a cmd. -bin/%: cmd/% FORCE +# TODO: improve dependency using `go list -f {{.Deps}}` +bin/%: cmd/% $(shell find . -type f -name '*.go') @test $$(go list) = "${PROJECT_ROOT}" || \ - (echo "👹 Please correctly set up your Go build environment. This project must be located at /src/${PROJECT_ROOT}" && false) + (echo "👹 Please correctly set up your Go build environment. This project must be located at /src/${PROJECT_ROOT}.\nHint: If you are running \`sudo make install\` after modifying the code, please run \`make\` first." && false) @echo "🐳 $@" @go build -i -o $@ ${GO_LDFLAGS} ${GO_GCFLAGS} ./$<