Skip to content

Commit

Permalink
Fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aligator committed May 7, 2021
1 parent f1b1ac7 commit d5c7a2e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ LDFLAGS=-ldflags "-X=main.Version=$(VERSION) -X=main.Build=$(BUILD)"
build: clean
@mkdir -p $(TARGET)
@GOPATH=$(GOPATH) \
GOBIN=$(GOBIN) \
GOARM=$(GOARM) \
CGO_CPPFLAGS=$(CGO_CPPFLAGS) \
CGO_CFLAGS=$(CGO_CFLAGS) \
CGO_CXXFLAGS=$(CGO_CXXFLAGS) \
CGO_LDFLAGS=$(CGO_LDFLAGS) \
GOFLAGS=$(GOFLAGS) \
go build $(LDFLAGS) -o $(TARGET) $(GOFILES)
GOBIN=$(GOBIN) \
GOARM=$(GOARM) \
go build $(LDFLAGS) $(GOFLAGS) -o $(TARGET) $(GOFILES)

## clean the build folder
clean:
Expand Down

0 comments on commit d5c7a2e

Please sign in to comment.