-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: tkrop <[email protected]>
- Loading branch information
Showing
18 changed files
with
273 additions
and
2,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,18 @@ else | |
$(warning warning: please customize variables in Makefile.vars) | ||
endif | ||
|
||
#GOBIN := $(CURDIR)/build/bin | ||
#PATH := $(GOBIN):$(PATH) | ||
GOBIN ?= $(shell go env GOPATH)/bin | ||
GOMAKE ?= github.com/tkrop/[email protected] | ||
TARGETS := $(shell command -v go-make >/dev/null || \ | ||
go install $(GOMAKE) && go-make targets) | ||
GOMAKE ?= github.com/tkrop/[email protected] | ||
TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \ | ||
make -f config/Makefile.base install >/dev/stderr && \ | ||
$(GOBIN)/go-make targets) | ||
|
||
# Declare all targets phony to make them available for auto-completion. | ||
.PHONY:: $(TARGETS) | ||
|
||
# Delegate all targets to go-make in a single call suppressing other targets. | ||
$(eval $(wordlist 1,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))::;@:) | ||
$(firstword $(MAKECMDGOALS) all):: | ||
$(GOBIN)/go-make $(MAKEFLAGS) $(MAKECMDGOALS); | ||
@$(GOBIN)/go-make $(strip $(MAKEFLAGS) $(MAKECMDGOALS)); |
Oops, something went wrong.