-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
38 lines (30 loc) · 1.82 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
clj_cmd = env clojure
.PHONY: build
build:
mkdir -p target
rm -rf classes
mkdir -p classes
clojure -e "(compile 'recife.class)"
$(clj_cmd) -X:depstar uberjar :jar target/recife.jar :sync-pom true :version '"0.19.0"' :exclude '["clojure/.*", "lambdaisland/.*", "medley/.*", "alandipert/.*", "metosin/.*", "quil/.*", "tlc2/.*", "com/.*", "javax/.*", "org/.*", "pcal/.*", "tla2sany/.*", "tla2tex/.*", "util/.*", "malli/.*", "jogamp/.*", "natives/.*", "processing/.*", "cljsjs/.*", "icon/.*", "fipp/.*", "edamame/.*", "javassist/.*", "arrudeia/.*" "OSGI-OPT/src/edu/mit/csail/.*", "amd64-linux/.*", "edu/mit/csail/sdg/alloy4/.*", "help/image/.*", "icons/.*", "images/.*", "kodkod/.*", "linux_x86_64/.*", "models/.*", "x86-linux/.*", "x86-mac/.*", "x86-windows/.*"]' :compile-ns '[recife.class]'
.PHONY: deploy
deploy:
mvn deploy:deploy-file -Dfile=target/recife.jar -DpomFile=pom.xml -DrepositoryId=clojars -Durl=https://clojars.org/repo/
.PHONY: build-alloy
build-alloy:
mkdir -p target
rm -rf classes
mkdir -p classes
$(clj_cmd) -X:depstar uberjar :jar target/recife-alloy.jar :sync-pom true :version '"0.16.0"' :exclude '["clojure/.*", "lambdaisland/.*", "medley/.*", "alandipert/.*", "metosin/.*", "quil/.*", "tlc2/.*", "com/.*", "javax/.*", "pcal/.*", "tla2sany/.*", "tla2tex/.*", "util/.*", "malli/.*", "jogamp/.*", "natives/.*", "processing/.*", "cljsjs/.*", "icon/.*", "fipp/.*", "edamame/.*", "javassist/.*", "arrudeia/.*"]'
.PHONY: deploy-alloy
deploy-alloy:
mvn deploy:deploy-file -Dfile=target/recife-alloy.jar -DpomFile=pom.xml -DrepositoryId=clojars -Durl=https://clojars.org/repo/
.PHONY: test
test:
clojure -M:test
.PHONY: start-components
start-components:
docker-compose -f docker/compose.yml pull
docker-compose -f docker/compose.yml up -d
.PHONY: stop-components
stop-components:
docker-compose -f docker/compose.yml down