1 # My make-fu style is old and tired. I just want to have a few helper commands.
6 .PHONY: clean sdist test docs
10 $(RM) -r Thun.egg-info/ dist/ build/ __pycache__/ $(TESTDIR)
11 find . -name '*.pyc' | xargs $(RM)
14 python ./setup.py sdist
16 joy/utils/generated_library.py: joy/utils/types.py
17 python -c 'import joy.utils.types ; joy.utils.types.generate_library_code()' > $@
20 # In order to support testing the code as installed
21 # create a virtualenv and install the source dist zip there.
24 virtualenv --system-site-packages --never-download $(TESTDIR)
25 . $(TESTDIR)/bin/activate && \
26 pip install --no-cache-dir --no-index ./dist/Thun-$(VERSION).tar.gz
27 echo "Type: source $(TESTDIR)/bin/activate"