/
Makefile
48 lines (36 loc) · 1.52 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
third/lingpipe-4.1.0:
mkdir -p third
cd third && wget -O - "http://lingpipe-download.s3.amazonaws.com/lingpipe-4.1.0.tar.gz" | tar xzf -
test: third/lingpipe-4.1.0
python setup.py test
clean:
rm -rf build dist src/streamcorpus_pipeline.egg-info
.IGNORE: lxml
lxml:
## use saltstack to get these install first
#sudo apt-get -y install libxml2-dev libxslt-dev
.PHONY : build
build: clean
python setup.py bdist_egg sdist
post-build-test:
echo data/john-smith/john-smith-0.sc | python -m streamcorpus.pipeline.run configs/john-smith-lingpipe-from-chunk.yaml
install: clean lxml
## might need to do this on mac: export C_INCLUDE_PATH=/usr/include:/usr/local/include:/opt/local/include
python setup.py clean --all
python setup.py --version
python setup.py build
python setup.py install
register:
## upload both source and binary
python setup.py sdist bdist_egg upload
check:
pylint -i y --output-format=parseable src/`git remote -v | grep origin | head -1 | cut -d':' -f 2 | cut -d'.' -f 1`
BUP_DIR:=streamcorpus-org-backup-`date -u +%s`
streamcorpus.org: install
pip install docutils Sphinx sphinxcontrib-httpdomain
pip install -e . --upgrade
mkdir -p $(BUP_DIR)
s3cmd -c ../streamcorpus-website-builder-dot-s3cfg get --recursive s3://streamcorpus.org/ $(BUP_DIR)/
python setup.py build_sphinx
s3cmd -c ../streamcorpus-website-builder-dot-s3cfg del --recursive --force s3://streamcorpus.org/
s3cmd -c ../streamcorpus-website-builder-dot-s3cfg put --recursive --acl-public build/sphinx/html/ s3://streamcorpus.org/