bug: Fix makefile according to latest go versions
This commit is contained in:
parent
8ae5a415f6
commit
d0a039c17b
1 changed files with 2 additions and 7 deletions
9
Makefile
9
Makefile
|
@ -20,14 +20,9 @@ build: vendor ## build executable
|
||||||
@mkdir -p "$(BUILD_DIR)"
|
@mkdir -p "$(BUILD_DIR)"
|
||||||
# go build -i ./...
|
# go build -i ./...
|
||||||
# GOBIN="$(BUILD_DIR)" go install ./...
|
# GOBIN="$(BUILD_DIR)" go install ./...
|
||||||
for binary in "./cmd"/* ; do \
|
for binary in $$(cd cmd ; ls) ; do \
|
||||||
name="$$(basename "$$binary")" ; \
|
name="$$(basename "$$binary")" ; \
|
||||||
go build -i "$$binary" || exit 1 ; \
|
go build -o "_build/$$binary" ./cmd/$$binary/... || exit 1 ; \
|
||||||
if [ -f "$$name.exe" ]; then \
|
|
||||||
mv "$$name.exe" "$(BUILD_DIR)/$$name.exe" || exit 1 ; \
|
|
||||||
else \
|
|
||||||
mv "$$name" "$(BUILD_DIR)/$$name" || exit 1 ; \
|
|
||||||
fi ; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue