1 # My make-fu style is old and tired. I just want to have a few helper commands.
5 WEBSERVER = sforman@shell.osdn.net
7 .PHONY: clean sdist test docs upload-docs
11 $(RM) -r Thun.egg-info/ dist/ build/ __pycache__/ $(TESTDIR)
12 find . -name '*.pyc' | xargs $(RM)
15 python ./setup.py sdist
17 joy/utils/generated_library.py: joy/utils/types.py
18 python -c 'import joy.utils.types ; joy.utils.types.generate_library_code()' > $@
21 # In order to support testing the code as installed
22 # create a virtualenv and install the source dist zip there.
25 virtualenv --system-site-packages --never-download $(TESTDIR)
26 . $(TESTDIR)/bin/activate && \
27 pip install --no-cache-dir --no-index ./dist/Thun-$(VERSION).tar.gz
28 echo "Type: source $(TESTDIR)/bin/activate"
32 cd ./docs && make && make mov && cd ./sphinx_docs && make html
35 ssh $(WEBSERVER) /home/users/s/sf/sforman/backup-and-remove-htdocs
36 rsync -rv --progress ./docs/sphinx_docs/_build/html/ $(WEBSERVER):/home/groups/j/jo/joypy/htdocs/