-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile
43 lines (32 loc) · 878 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
TZ = UTC # same as Github
export TZ
SHELL := /bin/bash
JDK := zulu
JAVA8 := /Library/Java/JavaVirtualMachines/$(JDK)-8.jdk/Contents/Home
JAVA11 := /Library/Java/JavaVirtualMachines/$(JDK)-11.jdk/Contents/Home
JAVA17 := /Library/Java/JavaVirtualMachines/$(JDK)-17.jdk/Contents/Home
JAVA21 := /Library/Java/JavaVirtualMachines/$(JDK)-21.jdk/Contents/Home
default: reportjava
./mvnw package
ant test
dist: reportjava
JAVA_HOME=$(JAVA11) ant clean dist
shasum -a 256 --tag ant-javacard.jar
reportjava:
@echo using java $(shell java -version 2>&1 | grep version) from \"$(JAVA_HOME)\"
jar:
JAVA_HOME=$(JAVA8) ant clean dist
cap:
# run maven with JDK21
JAVA_HOME=$(JAVA21) ./mvnw package
8:
JAVA_HOME=$(JAVA8) ant test
11:
JAVA_HOME=$(JAVA11) ant test
17:
JAVA_HOME=$(JAVA17) ant test
21:
JAVA_HOME=$(JAVA21) ant test
all: cap 8 11 17 21
clean:
rm -f *~ *.cap