vew / Makefile

# Default target is to show help
	@echo "sdist          - Source distribution"
	@echo "html           - HTML documentation"
	@echo "docclean       - Remove documentation build files"
	@echo "upload         - upload a new release to PyPI"
	@echo "develop        - install development version"
	@echo "test           - run the test suite"
	@echo "test-quick     - run the test suite for bash and one version of Python ($(PYTHON26))"
	@echo "website        - generate web version of the docs"
	@echo "installwebsite - copy web version of HTML docs up to server"

.PHONY: sdist
sdist: html
	rm -f dist/*.gz
	rm -rf docs/website
	python sdist
	cp -v dist/*.gz ~/Desktop

# Documentation
.PHONY: html
	(cd docs && $(MAKE) html LANGUAGE="en")
	(cd docs && $(MAKE) html LANGUAGE="es")
	(cd docs && $(MAKE) html LANGUAGE="ja")

.PHONY: docclean
	rm -rf docs/build docs/html

# Website copy of documentation
.PHONY: website
	[ ~/Devel/doughellmann/doughellmann/templates/base.html -nt docs/sphinx/web/templates/base.html ] && (echo "Updating base.html" ; cp ~/Devel/doughellmann/doughellmann/templates/base.html docs/sphinx/web/templates/base.html) || exit 0
	rm -rf docs/website
	(cd docs && $(MAKE) html BUILDDIR="website/en" LANGUAGE="en")
	(cd docs && $(MAKE) html BUILDDIR="website/es" LANGUAGE="es")
	(cd docs && $(MAKE) html BUILDDIR="website/ja" LANGUAGE="ja")

installwebsite: website
	(cd docs/website/en && rsync --rsh=ssh --archive --delete --verbose .
	(cd docs/website/es && rsync --rsh=ssh --archive --delete --verbose .
	(cd docs/website/ja && rsync --rsh=ssh --archive --delete --verbose .

# Register the new version on pypi
.PHONY: register
	echo "USE upload target"
	exit 1
	python register

.PHONY: upload
	python sdist upload

# Testing

	tox -e py27

	python develop
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.