-
Notifications
You must be signed in to change notification settings - Fork 22
/
makefile
52 lines (48 loc) · 2.13 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
include build.properties
TAR=tar
source:
rm -fr sux4j-$(version)
ant clean
ln -s . sux4j-$(version)
./genz.sh
$(TAR) chvf sux4j-$(version)-src.tar --owner=0 --group=0 \
sux4j-$(version)/README.md \
sux4j-$(version)/CHANGES \
sux4j-$(version)/COPYING.LESSER \
sux4j-$(version)/LICENSE-2.0.txt \
sux4j-$(version)/build.xml \
sux4j-$(version)/ivy.xml \
sux4j-$(version)/sux4j.bnd \
sux4j-$(version)/pom-model.xml \
sux4j-$(version)/build.properties \
$$(find sux4j-$(version)/src/it/unimi/dsi/sux4j -iname \*.java -or -iname \*.html) \
$$(find sux4j-$(version)/test/it/unimi/dsi/sux4j -iname \*.java) \
$$(find sux4j-$(version)/slow/it/unimi/dsi/sux4j -iname \*.java) \
sux4j-$(version)/src/overview.html
$(TAR) --delete --wildcards -v -f sux4j-$(version)-src.tar \
sux4j-$(version)/src/it/unimi/dsi/sux4j/mph/solve/Modulo2SparseSystem.java \
sux4j-$(version)/test/it/unimi/dsi/sux4j/mph/solve/Modulo2SparseSystemTest.java \
sux4j-$(version)/src/it/unimi/dsi/sux4j/bits/Rank12.java \
sux4j-$(version)/test/it/unimi/dsi/sux4j/bits/Rank12Test.java \
sux4j-$(version)/src/it/unimi/dsi/sux4j/scratch/*.java \
sux4j-$(version)/test/it/unimi/dsi/sux4j/scratch/*.java \
sux4j-$(version)/src/it/unimi/dsi/sux4j/test/*.java
gzip -f sux4j-$(version)-src.tar
rm sux4j-$(version)
binary:
rm -fr sux4j-$(version)
$(TAR) zxvf sux4j-$(version)-src.tar.gz
(cd sux4j-$(version) && unset CLASSPATH && unset LOCAL_IVY_SETTINGS && ant ivy-clean ivy-setupjars && ant junit && ant clean && ant jar javadoc)
$(TAR) zcvf sux4j-$(version)-bin.tar.gz --owner=0 --group=0 \
sux4j-$(version)/README.md \
sux4j-$(version)/COPYING.LESSER \
sux4j-$(version)/LICENSE-2.0.txt \
sux4j-$(version)/COPYING.LESSER \
sux4j-$(version)/sux4j-$(version).jar \
sux4j-$(version)/docs
$(TAR) zcvf sux4j-$(version)-deps.tar.gz --owner=0 --group=0 --transform='s|.*/||' $$(find sux4j-$(version)/jars/runtime -iname \*.jar -exec readlink {} \;)
stage:
rm -fr sux4j-$(version)
$(TAR) zxvf sux4j-$(version)-src.tar.gz
cp -fr bnd sux4j-$(version)
(cd sux4j-$(version) && unset CLASSPATH && unset LOCAL_IVY_SETTINGS && ant ivy-clean ivy-setupjars && ant stage)