-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (43 loc) · 2.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: all compile go-tidy go-init clean java-jar
all: clean compile go-init go-tidy java-jar documentation
comma:=
export GOTOOLCHAIN=auto
compile:
protoc -I ./protos -I /usr/local/include --go_opt=module=github.com/cyverse-de/p/go --go_out=./go protos/*.proto
protoc -I ./protos -I /usr/local/include --java_out=./java protos/*.proto
documentation:
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,analysis.md protos/analysis_*.proto
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,monitoring.md protos/monitoring_*.proto
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,qms.md protos/qms_*.proto
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,common.md protos/header.proto protos/svcerror.proto
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,users.md protos/user.proto protos/user_requests.proto
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,requests.md protos/requests.proto
protoc -I ./protos -I /usr/local/include --doc_out=./docs --doc_opt=markdown,tools.md protos/tools.proto
java-jar:
lein jar
go-init:
cd ./go/containers && go mod init github.com/cyverse-de/p/go/containers
cd ./go/analysis && go mod init github.com/cyverse-de/p/go/analysis
cd ./go/user && go mod init github.com/cyverse-de/p/go/user
cd ./go/svcerror && go mod init github.com/cyverse-de/p/go/svcerror
cd ./go/header && go mod init github.com/cyverse-de/p/go/header
cd ./go/qms && go mod init github.com/cyverse-de/p/go/qms
cd ./go/monitoring && go mod init github.com/cyverse-de/p/go/monitoring
cd ./go/requests && go mod init github.com/cyverse-de/p/go/requests
cd ./go/tools && go mod init github.com/cyverse-de/p/go/tools
go-tidy:
cd ./go/containers && go mod tidy
cd ./go/analysis && go mod tidy
cd ./go/user && go mod tidy
cd ./go/svcerror && go mod tidy
cd ./go/header && go mod tidy
cd ./go/qms && go mod tidy
cd ./go/monitoring && go mod tidy
cd ./go/requests && go mod tidy
cd ./go/tools && go mod tidy
clean:
rm -rf ./go/*
rm -rf ./java/*
rm -rf ./docs/*
lein clean
godirs: $(ls ./go/)