1 VERSION=`python setup.py --version`
4 @echo "Specify one of: serve, publish_docs, publish_package"
7 env/bin/mkdocs serve -a localhost:8000
10 env MKDOCS_BINARY=env/bin/mkdocs npm -C tests test
13 env MKDOCS_BINARY=env/bin/mkdocs npm -C tests run test-debug
16 env/bin/mkdocs gh-deploy
19 @echo Build python distribution
20 python setup.py sdist bdist_wheel
21 @echo "Publish to PyPI at https://pypi.python.org/pypi/mkdocs-windmill"
22 @echo "Version in setup.py is $(VERSION)"
23 @echo "Git tag is `git describe --tags`"
24 @echo "Run this manually: python3 -m twine upload dist/mkdocs-windmill-$(VERSION).tar.gz dist/mkdocs_windmill-$(VERSION)-py2-none-any.whl"
26 .PHONY: serve publish_docs publish_package