OSDN Git Service

show_stack in case you close the stack window.
[joypy/Thun.git] / Makefile
1 # My make-fu style is old and tired.  I just want to have a few helper commands.
2
3 TESTDIR = ./test00
4 VERSION = 0.2.0
5 WEBSERVER = sforman@shell.osdn.net
6
7 .PHONY: clean sdist test docs upload-docs
8
9
10 clean:
11         $(RM) -r Thun.egg-info/ dist/ build/ __pycache__/ $(TESTDIR)
12         find . -name '*.pyc' | xargs $(RM)
13
14 sdist:
15         python ./setup.py sdist
16
17 joy/utils/generated_library.py: joy/utils/types.py
18         python -c 'import joy.utils.types ; joy.utils.types.generate_library_code()' > $@
19
20
21 # In order to support testing the code as installed
22 # create a virtualenv and install the source dist zip there.
23 test: sdist
24         $(RM) -r $(TESTDIR)
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"
29
30
31 docs:
32         cd ./docs && make && make mov && cd ./sphinx_docs && make html
33
34 upload-docs: docs
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/