1- # Get the version of the app. This is used in the doc build.
2- export VERSION =$(shell python setup.py --version)
3-
41# Default target is to show help
52help :
63 @echo " sdist - Source distribution"
74 @echo " html - HTML documentation"
85 @echo " docclean - Remove documentation build files"
9- @echo " register - register a new release on PyPI"
10- @echo " website - build web version of docs"
11- @echo " installwebsite - deploy web version of docs"
6+ @echo " upload - upload a new release to PyPI"
127 @echo " develop - install development version"
138 @echo " test - run the test suite"
149 @echo " test-quick - run the test suite for bash and one version of Python ($( PYTHON26) )"
15-
10+ @echo " website - generate web version of the docs"
11+ @echo " installwebsite - copy web version of HTML docs up to server"
1612
1713.PHONY : sdist
1814sdist : html
@@ -37,9 +33,9 @@ docclean:
3733website :
3834 [ ~ /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
3935 rm -rf docs/website
40- (cd docs && $( MAKE) html BUILDING_WEB=1 BUILDDIR=" website/en" LANGUAGE=" en" )
41- (cd docs && $( MAKE) html BUILDING_WEB=1 BUILDDIR=" website/es" LANGUAGE=" es" )
42- (cd docs && $( MAKE) html BUILDING_WEB=1 BUILDDIR=" website/ja" LANGUAGE=" ja" )
36+ (cd docs && $( MAKE) html BUILDDIR=" website/en" LANGUAGE=" en" )
37+ (cd docs && $( MAKE) html BUILDDIR=" website/es" LANGUAGE=" es" )
38+ (cd docs && $( MAKE) html BUILDDIR=" website/ja" LANGUAGE=" ja" )
4339
4440installwebsite : website
4541 (cd docs/website/en && rsync --rsh=ssh --archive --delete --verbose . www.doughellmann.com:/var/www/doughellmann/DocumentRoot/docs/virtualenvwrapper/)
@@ -49,8 +45,14 @@ installwebsite: website
4945# Register the new version on pypi
5046.PHONY : register
5147register :
48+ echo " USE upload target"
49+ exit 1
5250 python setup.py register
5351
52+ .PHONY : upload
53+ upload :
54+ python setup.py sdist upload
55+
5456# Testing
5557test :
5658 tox
0 commit comments