-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (30 loc) · 1.13 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
build: frontend client negotiator catalog broker
current_dir = $(shell pwd)
frontend:
mkdir Frontend/bin
dependencies/gpb/bin/protoc-erl -I. -maps -o Frontend/ Protos/protocol.proto
erlc -I dependencies/gpb/include -o Frontend/bin Frontend/protocol.erl
erlc -I dependencies/erlzmq2/include -o Frontend/bin dependencies/erlzmq2/src/erlzmq.erl
erlc -I dependencies/erlzmq2/include -o Frontend/bin dependencies/erlzmq2/src/erlzmq_nif.erl
erlc -o Frontend/bin Frontend/*.erl dependencies/mochijson.erl
client:
mkdir exec/
cd Client && mvn clean compile package && cd ../
mv Client/target/Client-1.0.jar exec/
negotiator:
cd Negotiator && mvn clean compile package && cd ../
mv Negotiator/target/Negotiator-1.0.jar exec/
catalog:
cd catalog && mvn clean compile package && cd ../
mv catalog/target/nefit-1.0.jar exec/
cp catalog/config.yml exec/
broker:
cd Broker && mvn clean compile package && cd ../
mv Broker/target/Broker-1.0.jar exec/
run-frontend:
cd dependencies/erlzmq2/ebin && erl < ErlangCommands
.PHONY: frontend client negotiator catalog broker
clean:
-@rm -rf Frontend/bin/
-@rm Frontend/protocol.erl
-@rm -rf exec/