-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 818 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 818 Bytes
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
.PHONY: download all test clean compiler sketch
all: download lib antlr
lein uberjar
download:
lein install || true
install:
cp target/selectscript-0.1.0-SNAPSHOT-standalone.jar /usr/local/bin/S2c.jar
echo "#!/bin/bash" > /usr/local/bin/S2c
echo 'java -jar /usr/local/bin/S2c.jar "$$@"' >> /usr/local/bin/S2c
chmod a+x /usr/local/bin/S2c
uninstall:
rm -f /usr/local/bin/S2c.jar
rm -f /usr/local/bin/S2c
lib:
cd SandhillSkipper; make lib
cp SandhillSkipper/libS2.so native/linux-x86-64/
antlr:
cd resources; java -jar ~/.m2/repository/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar \
-visitor -no-listener \
-package S2 \
-o ../src/antlr/ \
-long-messages SelectScript.g4
clean:
find . -name "*hs_err_pid*.log" | xargs rm -f
rm native/linux-x86-64/libS2.so
lein clean
cd SandhillSkipper; make clean