-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile_before_paver
52 lines (39 loc) · 1.71 KB
/
Makefile_before_paver
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
#~ requires eid-applet-service-1.0.1.GA.jar downloaded
#~ from http://code.google.com/p/eid-applet/
JFLAGS =
# JFLAGS = -d build -sourcepath src
# JFLAGS = -Xlint:unchecked
JFLAGS = -Xlint:unchecked -classpath example/eid-applet-service.jar:example/commons-codec.jar
JC = javac
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
JARFILE = EIDReader.jar
SOURCES = src/eidreader/EIDReader.java
OBJECTS = Manifest.txt $(SOURCES:.java=*.class) src/eidreader/PersonalFile.class src/eidreader/BelgianReader.class src/eidreader/EstEIDUtil.class
default: jars_codegears jars_mykey
classes: $(SOURCES:.java=.class)
jars_mykey: classes
export SIGNERFLAGS = -storepass "`cat ~/.secret/.keystore_password`"
export ALIAS = mykey
export JARDIR =
jar cvfm example/mykey/$(JARFILE) $(OBJECTS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/$(JARFILE) $(ALIAS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/eid-applet-service.jar $(ALIAS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/commons-codec.jar $(ALIAS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/commons-logging.jar $(ALIAS)
jars_codegears: classes
export SIGNERFLAGS=-tsa http://timestamp.globalsign.com/scripts/timestamp.dll -storepass "`cat ~/.secret/.keystore_password`"
export ALIAS = codegears
export JARDIR = example/$(ALIAS)s
jar cvfm $(JARDIR)/$(JARFILE) $(OBJECTS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/$(JARFILE) $(ALIAS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/eid-applet-service.jar $(ALIAS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/commons-codec.jar $(ALIAS)
jarsigner $(SIGNERFLAGS) $(JARDIR)/commons-logging.jar $(ALIAS)
clean:
rm -f src/eidreader/*.class
rm -f example/mykey/*.jar
rm -f example/codegears/*.jar
xpi:
cd firefox/eidreader ; make xpi