-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (38 loc) · 1.15 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY : jar bin clean run run-bin package archive-project all native-bin make-test-files jvm lint test
APP=ex-tractor-0.1.0-SNAPSHOT
FAT_JAR_FILE=$(APP)-standalone.jar
BIN_FILE=ex-tractor
JAR_FILE=$(BIN_FILE).jar
bin:
time lein bin
clean:
rm -rf target
jar:
time lein uberjar
cp target/uberjar/$(FAT_JAR_FILE) target/uberjar/$(JAR_FILE)
run:
java -jar target/uberjar/$(FAT_JAR_FILE)
run-bin:
./target/base+system+user+dev/$(APP)
native-bin:
make target/native
native-image -H:+ReportUnsupportedElementsAtRuntime -jar target/uberjar/$(FAT_JAR_FILE)
mv $(APP)-standalone target/native/
package:
# cp target/base+system+user+dev/$(APP) $(BIN_FILE)
mkdir -p target/package
cp target/uberjar/$(FAT_JAR_FILE) target/package/$(JAR_FILE)
java -jar target/package/$(JAR_FILE) -h > target/package/readme.md
cd target/package && zip $(BIN_FILE).zip $(JAR_FILE) readme.md
default: jar
all: bin package
archive-project: clean
rm ../$(BIN_FILE).zip
cd .. && zip -r $(BIN_FILE).zip $(BIN_FILE) && cp $(BIN_FILE).zip ~/Dropbox/ && cd $(BIN_FILE)
jvm:
jlink --output target/jvm --add-modules java.base
lint:
lein nvd check
lein eastwood
test:
lein test