-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (33 loc) · 1.05 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
version=$(shell git describe --tags)
distname=es-nozzle-$(version)
dist = dist/$(distname)
htmlnav = dist/htmlnav-$(version)
.PHONY: uberjar dist cpfiles doc tgz clean
dist: uberjar doc cpfiles zip
tgz:
cd dist; tar -czf $(distname).tgz $(distname)
zip:
cd dist; zip -r $(distname).zip $(distname)
cpfiles:
@echo "=====> building es-nozzle $(version)"
rm -rf $(dist) $(htmlnav)
mkdir -p $(htmlnav)
rsync -aHP doc/_build/htmlnav/ $(htmlnav)
mkdir -p $(dist)/bin $(dist)/lib
echo es-nozzle-$(version) >$(dist)/VERSION.txt
cp -p NOTICE.txt LICENSE.txt README.md $(dist)
cp -p doc/es-nozzle.ini $(dist)/example-configuration.ini
rsync -aHP doc/_build/html/ $(dist)/doc/
rsync -aHP target/es-nozzle.jar $(dist)/lib/es-nozzle.jar
cp -p dist/es-nozzle.bat dist/es-nozzle $(dist)/bin/
chmod 755 $(dist)/bin/es-nozzle
rm -f current; ln -s $(dist) current
rm -f current-htmlnav; ln -s $(htmlnav) current-htmlnav
rm -rf target/classes
doc:
cd doc && make html htmlnav
uberjar:
LEIN_SNAPSHOTS_IN_RELEASE=1 lein uberjar
clean:
rm -rf dist/es-nozzle-*
lein clean