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)