Merge pull request #445 from AkihiroSuda/revert-432-makefile-non-force
Revert "Makefile: remove FORCE dependency"
This commit is contained in:
commit
2869aac1e5
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -95,12 +95,12 @@ integration: ## run integration tests
|
||||||
@echo "🐳 $@"
|
@echo "🐳 $@"
|
||||||
@go test ${TESTFLAGS} ${INTEGRATION_PACKAGE}
|
@go test ${TESTFLAGS} ${INTEGRATION_PACKAGE}
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
# Build a binary from a cmd.
|
# Build a binary from a cmd.
|
||||||
# TODO: improve dependency using `go list -f {{.Deps}}`
|
bin/%: cmd/% FORCE
|
||||||
bin/%: cmd/% $(shell find . -type f -name '*.go')
|
|
||||||
@test $$(go list) = "${PROJECT_ROOT}" || \
|
@test $$(go list) = "${PROJECT_ROOT}" || \
|
||||||
(echo "👹 Please correctly set up your Go build environment. This project must be located at <GOPATH>/src/${PROJECT_ROOT}.\nHint: If you are running \`sudo make install\` after modifying the code, please run \`make\` first." && false)
|
(echo "👹 Please correctly set up your Go build environment. This project must be located at <GOPATH>/src/${PROJECT_ROOT}" && false)
|
||||||
@echo "🐳 $@"
|
@echo "🐳 $@"
|
||||||
@go build -i -o $@ ${GO_LDFLAGS} ${GO_GCFLAGS} ./$<
|
@go build -i -o $@ ${GO_LDFLAGS} ${GO_GCFLAGS} ./$<
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue