-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
35 lines (25 loc) · 858 Bytes
/
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
ROOTDIR=${PWD}
SRCDIR=${ROOTDIR}/cpp
UNAME:=$(shell uname)
-include cpp/makeopts/${UNAME}.pre
-include cpp/localvars.make
all: districter2 linkfixup drend analyze dumpBinLog jall
include cpp/cpp.make
jall: java/org/bolson/redistricter/Redata.java tools.jar
java/org/bolson/redistricter/Redata.java: redata.proto
protoc $< --java_out=java
jcompile: java/org/bolson/redistricter/Redata.java
mvn package
tools.jar: java/org/bolson/redistricter/Redata.java
mvn package
ln -s `ls -t target/redistricter*.jar | head -1` tools.jar
python/bdistricting/redata_pb2.py:
protoc redata.proto --python_out=python/bdistricting
GTSRC=runner
include runner/gotools.make
deploy.tar: runner/runner districter2
rm -f deploy.tar
tar -c -f deploy.tar districter2
tar -r -f deploy.tar -C runner runner
deploy.tar.gz: deploy.tar
gzip < deploy.tar > deploy.tar.gz