iot_server/Makefile

14 lines
404 B
Makefile
Raw Permalink Normal View History

2023-08-28 06:49:44 +00:00
.PHONY: build clean test docker run
GO=CGO_ENABLED=0 GOOS=linux go
GOCGO=CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go
cmd/hummingbird-core/hummingbird-core:
$(GOCGO) build -ldflags "-s -w" -o $@ ./cmd/hummingbird-core
cmd/mqtt-broker/mqtt-broker:
$(GO) build -ldflags "-s -w" -o $@ ./cmd/mqtt-broker
generate/api:
cd cmd/hummingbird-core && swag init --parseDependency --parseInternal --parseDepth 10