| # This file is part of reclass (http://github.com/madduck/reclass) |
| # Copyright © 2007–13 martin f. krafft <madduck@madduck.net> |
| # Released under the terms of the Artistic Licence 2.0 |
| PYFILES = $(shell find -name .git -o -name dist -o -name build -prune -o -name '*.py' -print) |
| @echo pylint --rcfile=.pylintrc $(ARGS) … |
| @pylint --rcfile=.pylintrc $(ARGS) $(PYFILES) |
| lint-errors: ARGS=--errors-only |
| lint-report: ARGS=--report=y |
| python-coverage -x setup.py nosetests |
| ifeq ($(shell git branch --list $(GH_BRANCH)-base),) |
| @echo "Please fetch the $(GH_BRANCH)-base branch from Github to be able to publish documentation:" >&2 |
| @echo " git branch gh-pages-base origin/gh-pages-base" >&2 |
| git checkout $(GH_BRANCH) || git checkout -b $(GH_BRANCH) $(GH_BRANCH)-base |
| git reset --hard $(GH_BRANCH)-base |
| git commit -m'Webpage update' |
| git push -f $(shell git config --get branch.$(GH_BRANCH)-base.remote) $(GH_BRANCH) |