Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Jan 13, 2025
1 parent ae33d03 commit 6f3a040
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ SERVICES = manager proplet cli proxy
define compile_service
CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) \
go build -ldflags "-s -w \
-X 'github.com/absmach/magistrala.BuildTime=$(TIME)' \
-X 'github.com/absmach/magistrala.Version=$(VERSION)' \
-X 'github.com/absmach/magistrala.Commit=$(COMMIT)'" \
-X 'github.com/absmach/supermq.BuildTime=$(TIME)' \
-X 'github.com/absmach/supermq.Version=$(VERSION)' \
-X 'github.com/absmach/supermq.Commit=$(COMMIT)'" \
-o ${BUILD_DIR}/$(1) cmd/$(1)/main.go
endef

Expand All @@ -34,10 +34,10 @@ clean:
lint:
golangci-lint run --config .golangci.yaml

start-magistrala:
start-supermq:
docker compose -f docker/compose.yaml up -d

stop-magistrala:
stop-supermq:
docker compose -f docker/compose.yaml down

$(EXAMPLES):
Expand All @@ -52,6 +52,6 @@ help:
@echo " install: install the binary i.e copies to GOBIN"
@echo " clean: clean the build directory"
@echo " lint: run golangci-lint"
@echo " start-magistrala: start the magistrala docker compose"
@echo " stop-magistrala: stop the magistrala docker compose"
@echo " start-supermq: start the supermq docker compose"
@echo " stop-supermq: stop the supermq docker compose"
@echo " help: display this help message"

0 comments on commit 6f3a040

Please sign in to comment.