Skip to content

Commit

Permalink
fix: adjust Makefile build cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
batrov committed Jul 11, 2023
1 parent ff2ad84 commit f0ca910
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 @@ -68,10 +68,10 @@ generate-proto: $(TOOLS_DIR)/buf ## regenerate protos
@echo " > protobuf compilation finished"

build:
go build -ldflags "-X cmd.Version=${VERSION}" ${NAME}
go build -ldflags "-X ${NAME}/cmd.Version=${VERSION}" ${NAME}

build-dev:
CGO_ENABLED=0 go build -ldflags "-X cmd.Version=dev" ${NAME}
CGO_ENABLED=0 go build -ldflags "-X ${NAME}/cmd.Version=dev" ${NAME}

clean:
rm -rf dist/
Expand Down

0 comments on commit f0ca910

Please sign in to comment.