-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
45 lines (37 loc) · 881 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
36
37
38
39
40
41
42
43
44
45
.PHONY: clean
clean:
rm -rf target/
.PHONY: test
test:
clj -X:test
.PHONE: test-store-only
test-store-only:
clj -X:test :nses ["test.store-test"]
.PHONY: dependency-sources
dependency-sources:
clj -X:deps mvn-pom
mvn dependency:sources
.PHONY: run
run:
clj \
-J-Dlogback.configurationFile=conf/logback.xml \
-J-Dspy.properties=conf/spy.properties \
-J-Xms1g -J-Xmx1g \
-M -m me.untethr.nostr.app
.PHONY: uberjar
uberjar:
clj -M:uberdeps
.PHONY: run-uberjar
run-uberjar:
java \
-Dlogback.configurationFile=conf/logback.xml \
-Dspy.properties=conf/spy.properties \
-Xms1g -Xmx1g \
-cp target/me.untethr.nostr-relay.jar \
clojure.main -m me.untethr.nostr.app
.PHONY: deploy-archive
deploy-archive: clean uberjar
tar -czvf target/me.untethr.nostr-relay.tar.gz conf/* -C target me.untethr.nostr-relay.jar
.PHONY: release
release:
scripts/release.sh