~sforman/PythonOberon

PythonOberon/Makefile -rw-r--r-- 899 bytes
e4c9512cSimon Forman The C emu draws but my emu doesn't. :( 18 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: clean dist docs test upload


clean:
	$(RM) -vr ./build ./dist ./PythonOberon.egg-info ./docs/build
	$(RM) -r $(TESTDIR)
	$(RM) -vr oberon/*.pyc


dist:
	python ./setup.py sdist
	twine check ./dist/*


docs:
	$(MAKE) -C docs html


# In order to support testing the code as installed create a virtualenv
# and install the source dist zip there.
TESTDIR=./TEST00

test: dist
	$(RM) -r $(TESTDIR)
	mkdir $(TESTDIR)
	virtualenv --system-site-packages --never-download $(TESTDIR)/venv
	. $(TESTDIR)/venv/bin/activate && \
		$(TESTDIR)/venv/bin/pip install --no-cache-dir --no-index \
		    ./dist/PythonOberon-*.tar.gz
	echo "Type: cd $(TESTDIR) ; source ./venv/bin/activate"


# Upload to test server only.
PYPI_REPO=testpypi

upload: dist
	twine upload -r $(PYPI_REPO) ./dist/*


# To install from the test PyPI server.
# pip install -i https://test.pypi.org/simple/ --no-deps PythonOberon