|
@@ -11,8 +11,8 @@ GETENV=
|
|
# What packages to build
|
|
# What packages to build
|
|
|
|
|
|
# CLI Packages
|
|
# CLI Packages
|
|
-CLI={{.maingo}}
|
|
|
|
-BIN=$(addprefix $(DIST)/, $(notdir $(CLI)))
|
|
|
|
|
|
+CLI={{.mainpkg}}
|
|
|
|
+BIN=$(addprefix $(DIST)/, {{.binary}})
|
|
|
|
|
|
# Windows build
|
|
# Windows build
|
|
ifeq ($(GOOS),windows)
|
|
ifeq ($(GOOS),windows)
|
|
@@ -26,7 +26,7 @@ all: $(BIN) deps
|
|
@$(ENV) echo -e "\e[32;01mBuilt for OS: `go env GOOS`, ARCH: `go env GOARCH`\e[0m"
|
|
@$(ENV) echo -e "\e[32;01mBuilt for OS: `go env GOOS`, ARCH: `go env GOARCH`\e[0m"
|
|
|
|
|
|
$(BIN): deps
|
|
$(BIN): deps
|
|
- $(BUILDENV) GOPATH="$(GOPATH)" go build -o $@ $(CLI)
|
|
|
|
|
|
+ $(BUILDENV) GOPATH="$(GOPATH)" go build -o $(BIN) $(CLI)
|
|
|
|
|
|
# generate
|
|
# generate
|
|
generate:
|
|
generate:
|