-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (30 loc) · 971 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PYTHON=python3.3
.PHONY: docs test_docs clean push dist test register deploy
docs:
$(MAKE) -C docs
zip -j docs.zip docs/*.html docs/format.css LICENSE.txt
deploy: dist
rm -f pyPEG2.tar.gz pyPEG2-*.tar.gz
ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1` pyPEG2.tar.gz
ln -s `ls dist/pyPEG2-*.tar.gz | tail -n1`
scp docs/*.html docs/format.css pyPEG2.tar.gz pyPEG2-*.tar.gz *.txt samples/* dragon:fdik.org/pyPEG2/
make register
register:
$(PYTHON) setup.py check
$(PYTHON) setup.py register
test_docs:
$(MAKE) -C docs test
clean:
$(MAKE) -C docs clean
rm -Rf dist MANIFEST docs.zip pyPEG2.tar.gz pyPEG2-*.tar.gz
push:
hg push ssh://[email protected]/fdik/pyPEG
dist: docs
$(PYTHON) setup.py sdist
test:
PYTHONPATH=`pwd` $(PYTHON) pypeg2/test/test_pyPEG2.py
PYTHONPATH=`pwd` $(PYTHON) pypeg2/test/test_xmlast.py
PYTHONPATH=`pwd` $(PYTHON) samples/sample1.py
PYTHONPATH=`pwd` $(PYTHON) samples/sample2.py
install: dist
$(PYTHON) setup.py install --user