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 64
|
VERSION=1.0.0
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 -f .svn/entries && make cl-stamp || :
cl-stamp: .svn/entries
TZ=UTC svn log -v --xml \
| auxtools/svn2log.py -p '/(branches/[^/]+|trunk)' -x ChangeLog -u auxtools/users -F
touch cl-stamp
cosmetics:
./auxtools/cosmetics.sh
version:
if test -d ".svn" ; then \
echo "# pylint: disable-msg=W0103,W0131" > pyxmpp/version.py ; \
echo "version='$(VERSION)+svn'" >> pyxmpp/version.py ; \
fi
dist: build ChangeLog
-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)
|