blob: e589eb7ef26ff882ac2c733dca45536f532b6096 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
VERSION=1.1.2
SNAPSHOT=
DESTDIR="/"
.PHONY: all build test version dist update-doc doc cosmetics TODO.pylint pylint ChangeLog www publish
all: build test
build: version
umask 022 ; python setup.py build
-cd examples ; rm -f pyxmpp 2>/dev/null ; ln -s ../build/lib*/pyxmpp .
-cd examples ; chmod a+x *.py
-cd tests ; rm -f pyxmpp 2>/dev/null ; ln -s ../build/lib*/pyxmpp .
-cd tests ; chmod a+x *.py
test:
$(MAKE) -C tests
doc:
$(MAKE) -C doc
update-doc:
$(MAKE) -C doc update-doc
www:
$(MAKE) -C doc www
publish:
$(MAKE) -C doc publish
pylint: TODO.pylint
TODO.pylint:
./auxtools/pylint.sh | tee TODO.pylint
ChangeLog:
test -d .git && make cl-stamp || :
cl-stamp: .git
git log > ChangeLog
touch cl-stamp
cosmetics:
./auxtools/cosmetics.sh
version:
if test -d ".git" ; then \
echo "# pylint: disable-msg=W0103,W0131" > pyxmpp/version.py ; \
echo "version='$(VERSION)+git'" >> pyxmpp/version.py ; \
fi
dist: build ChangeLog doc
-rm -f MANIFEST
echo "version='$(VERSION)$(SNAPSHOT)'" > pyxmpp/version.py
python setup.py sdist
clean:
python setup.py clean --all
-rm -rf build/*
install: all
umask 022 ; python setup.py install --root $(DESTDIR)
|