Mainflux.mainflux/Makefile

20 lines
350 B
Makefile
Raw Normal View History

BUILD_DIR=build
all: manager http writer
.PHONY: all manager http writer
manager:
go build -o ${BUILD_DIR}/mainflux-manager cmd/manager/main.go
http:
go build -o ${BUILD_DIR}/mainflux-http cmd/http/main.go
writer:
go build -o ${BUILD_DIR}/mainflux-writer cmd/writer/main.go
clean:
rm -rf ${BUILD_DIR}
install:
cp ${BUILD_DIR}/* $(GOBIN)