Skip to content

Commit

Permalink
fix build make function
Browse files Browse the repository at this point in the history
  • Loading branch information
omegion committed Mar 7, 2021
1 parent 770a082 commit b9b0293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ COVER_PROFILE = $(REPORT_DIR)/coverage.out

.PHONY: build
build:
CGO_ENABLED=0 go build $(LDFLAGS) -installsuffix cgo -o dist/db-backup cmd/db-backup/main.go
CGO_ENABLED=0 go build $(LDFLAGS) -installsuffix cgo -o dist/db-backup main.go

build-for-container:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -a -installsuffix cgo -o dist/db-backup-linux cmd/db-backup/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -a -installsuffix cgo -o dist/db-backup-linux main.go

.PHONY: lint
lint:
Expand Down

0 comments on commit b9b0293

Please sign in to comment.