mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
Merge pull request #104 from mainflux/install
Add Makefile and fix installation from sources
This commit is contained in:
commit
7721b61fa2
26
Makefile
Normal file
26
Makefile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
BUILD_DIR=build
|
||||||
|
|
||||||
|
all: manager http normalizer writer coap
|
||||||
|
.PHONY: all manager http normalizer writer coap
|
||||||
|
|
||||||
|
manager:
|
||||||
|
go build -o ${BUILD_DIR}/mainflux-manager cmd/manager/main.go
|
||||||
|
|
||||||
|
http:
|
||||||
|
go build -o ${BUILD_DIR}/mainflux-http cmd/http/main.go
|
||||||
|
|
||||||
|
normalizer:
|
||||||
|
go build -o ${BUILD_DIR}/mainflux-normalizer cmd/normalizer/main.go
|
||||||
|
|
||||||
|
writer:
|
||||||
|
go build -o ${BUILD_DIR}/mainflux-writer cmd/writer/main.go
|
||||||
|
|
||||||
|
coap:
|
||||||
|
go build -o ${BUILD_DIR}/mainflux-coap cmd/coap/main.go
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf ${BUILD_DIR}
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp ${BUILD_DIR}/* $(GOBIN)
|
@ -13,20 +13,13 @@ fi
|
|||||||
export GOBIN=$GOPATH/bin
|
export GOBIN=$GOPATH/bin
|
||||||
export PATH=$PATH:$GOBIN
|
export PATH=$PATH:$GOBIN
|
||||||
|
|
||||||
# Manager
|
# Mainflux Go microservices
|
||||||
go get -v github.com/mainflux/manager
|
go get -d github.com/mainflux/mainflux
|
||||||
|
cd $GOPATH/src/github.com/mainflux/mainflux
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd -
|
||||||
|
|
||||||
# Message Writer
|
|
||||||
go get -v github.com/mainflux/message-writer
|
|
||||||
|
|
||||||
# HTTP
|
|
||||||
go get -v github.com/mainflux/http-adapter
|
|
||||||
|
|
||||||
# CoAP
|
|
||||||
go get -v github.com/mainflux/coap-adapter
|
|
||||||
|
|
||||||
# Cli
|
|
||||||
go get -v github.com/mainflux/mainflux-cli
|
|
||||||
|
|
||||||
# MQTT
|
# MQTT
|
||||||
git clone https://github.com/mainflux/mqtt-adapter
|
git clone https://github.com/mainflux/mqtt-adapter
|
||||||
@ -35,7 +28,7 @@ npm install
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# NGINX Conf
|
# NGINX Conf
|
||||||
git clone https://github.com/mainflux/nginx-conf
|
git clone https://github.com/mainflux/proxy
|
||||||
|
|
||||||
# NATS
|
# NATS
|
||||||
go get -v github.com/nats-io/gnatsd
|
go get -v github.com/nats-io/gnatsd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user