Commit e4808dcf authored by Sonja Happ's avatar Sonja Happ

update paths to protoc and swarmweb

parent 9a9a6c44
#export PATH:=$(PATH):$(shell realpath ../swarmweb/backend/bin)
#export PATH:=$(PATH):$(shell realpath ../../swarmweb/backend/bin)
.PHONY: clean help local
all: help
cluster: cpp
/global/cluster/centos/protobuf_3.3.0/bin/protoc -I=`pwd` --cpp_out=cpp `pwd`/*.proto
local: ./protoc_tools/bin/protoc cpp
./protoc_tools/bin/protoc -I=`pwd` --cpp_out=cpp `pwd`/*.proto
all: cpp
../libs/protocolbuffers/protoc -I=`pwd` --cpp_out=cpp `pwd`/*.proto
cpp:
mkdir cpp
go:
protoc_tools/bin/protoc -I=`pwd` `pwd`/*.proto --go_out=../../../swarmweb/backend/src/webui/pkg/agents_protobuf
./protoc_tools/bin/protoc: protoc_tools
cd protoc_tools && wget -q 'https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip'
cd protoc_tools && unzip -o protoc-3.3.0-linux-x86_64.zip
cd protoc_tools && rm protoc-3.3.0-linux-x86_64.zip
protoc_tools:
mkdir protoc_tools
../libs/protocolbuffers/protoc -I=`pwd` `pwd`/*.proto --go_out=../../swarmweb/backend/src/webui/pkg/agents_protobuf
help:
$(info Use the cluster target if youre on a swarm machine, local target if youre on your machine)
$(info Use make to compile the *.proto files in this folder. Use make go to create *.go files for the *.proto files in this folder and move them to the swarmweb folder.)
clean:
rm -rf cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment