-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
50 lines (35 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
.PHONY: api-doc priv-doc deploy-docs test all-docs doc sdist
### Documentation targets
# TODO: -t awe for the jsdocs: something about the template is broken
api-doc:
npx jsdoc -d api-doc -c doc/conf.json \
annotald/data/scripts/treedrawing.js \
annotald/data/scripts/treedrawing.utils.js \
annotald/data/scripts/treedrawing.contextMenu.js
priv-doc:
npx jsdoc -p -d priv-doc -c doc/conf.json -t awe \
annotald/data/scripts/treedrawing.js \
annotald/data/scripts/treedrawing.utils.js \
annotald/data/scripts/treedrawing.contextMenu.js
doc: doc/devel.html doc/user.html doc/index.html
doc/devel.html: doc/devel.adoc
cd doc && make devel.html
doc/user.html: doc/user.adoc
cd doc && make user.html
doc/index.html: README.rst
cd doc && make index.html
all-docs: api-doc priv-doc doc
### Test targets
test:
# TODO: branch coverage
nosetests2 -w annotald --with-coverage --cover-erase \
--cover-package=util --cover-package=logs
coverage2 html
### Website targets
deploy-docs: api-doc doc
cp -r api-doc ../annotald-doc
cp -r doc/*.html doc/*.css doc/images ../annotald-doc
### Packaging targets
release:
python2 setup.py sdist
twine upload dist/*