-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
23 lines (23 loc) · 684 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
all: cleanpyc install tests
cleanpyc:
find ./ -iname '*.pyc' -type f -delete
install:
pip install -r requirements.txt
pip install -U nltk
python -m nltk.downloader wordnet
python -m nltk.downloader verbnet
python -m nltk.downloader stopwords
python -m nltk.downloader punkt
python -m nltk.downloader maxent_treebank_pos_tagger
python -m nltk.downloader averaged_perceptron_tagger
python setup.py install
tests:
nosetests
docs:
sphinx-apidoc -e --private -F -s 'md' -A 'Chris Tabor' -H 'namebot' -o docs namebot tests/
cp _sphinx_conf.py docs/conf.py
cd docs && make html
clean: cleanpyc
rm -r docs
testdocs:
rm -r docs && make docs && open docs/_build/html/index.html