-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
44 lines (32 loc) · 787 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
41
42
43
44
# Makefile for pyntch
PACKAGE=pyntch
PREFIX=/usr/local
SVN=svn
RM=rm -f
CP=cp -f
PYTHON=python
VERSION=`$(PYTHON) $(PACKAGE)/__init__.py`
DISTFILE=$(PACKAGE)-$(VERSION).tar.gz
TCHECKER=tools/tchecker.py
all:
install:
$(PYTHON) setup.py install --prefix=$(PREFIX)
clean:
-$(PYTHON) setup.py clean
-$(RM) -r build dist selfcheck.xml
-cd $(PACKAGE) && $(MAKE) clean
-cd tools && $(MAKE) clean
commit: clean
$(SVN) commit
check:
cd test && $(MAKE) check
selfcheck:
PYTHONPATH=. $(PYTHON) $(TCHECKER) -t xml $(TCHECKER) > selfcheck.xml
sdist: clean
$(PYTHON) setup.py sdist
register: clean
$(PYTHON) setup.py sdist upload register
WEBDIR=$$HOME/Site/unixuser.org/python/$(PACKAGE)
publish: sdist
cp dist/$(DISTFILE) $(WEBDIR)/
cp docs/index.html docs/*.png $(WEBDIR)/