We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d8df1 commit 6e3f317Copy full SHA for 6e3f317
Makefile
@@ -7,6 +7,8 @@ PROJECTNAME=$(shell basename "$(PWD)")
7
# Make is verbose in Linux. Make it silent.
8
MAKEFLAGS += --silent
9
10
+GOARCH ?= $(shell go env GOARCH) # detect automatically the underlying arch
11
+
12
go-compile: go-get go-build
13
14
tools:
@@ -25,7 +27,7 @@ tools:
25
27
26
28
go-build:
29
@echo " > Building binaries..."
- @CGO_ENABLED=0 go build -o ${PROJECTNAME} .
30
+ @CGO_ENABLED=0 GOARCH=$(GOARCH) go build -o ${PROJECTNAME} .
31
32
go-get:
33
@echo " > Checking if there are any missing dependencies..."
0 commit comments