-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 1.02 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
default: build
PYTHON = python
build:
$(PYTHON) setup.py build
build-py:
$(PYTHON) setup.py build_py
.PHONY: build
test: build
mkdir -p tmp-test-install
$(PYTHON) setup.py install --skip-build --prefix tmp-test-install
export PYTHONPATH=tmp-test-install/lib/python2.5/site-packages; \
$(PYTHON) test_mGramCounts.py ;\
# $(PYTHON) test_SparseVector.py ;\
# $(PYTHON) test_LanguageModel.py ;\
$(PYTHON) test_Minimization.py ;\
$(PYTHON) test_SequenceModel.py ;\
# $(PYTHON) test_IntTuple.py ;\
$(PYTHON) test_sequitur.py
# rm -r tmp-test-install
INSTALL_TARGET = $(HOME)/sr/lib-$(ARX)
install: build
umask 022; \
$(PYTHON) setup.py install --skip-build --home $(INSTALL_TARGET)
clean:
rm -rf tmp-test-install
rm -f *~
rm -rf build dist
rm -f *.pyc
rm -f SparseVector.c
rm -f sequitur_.py sequitur_wrap.cpp
# ---------------------------------------------------------------------------
TARGETS = \
_sequitur_.so sequitur_.py \
Evaluation.py Minimization.py SequenceModel.py sequitur.py g2p.py \
misc.py tool.py