forked from DiamondLightSource/pymalcolm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.09 KB
/
Makefile
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
# Specify defaults for testing
PREFIX := $(shell pwd)/prefix
PYTHON = dls-python
MODULEVER=0.0
# Override with any release info
-include Makefile.private
# This is run when we type make
dist: setup.py $(wildcard malcolm/*/*.py)
MODULEVER=$(MODULEVER) $(PYTHON) setup.py bdist_egg
touch dist
# Clean the module
clean:
$(PYTHON) setup.py clean
rm -rf build dist *egg-info installed.files prefix docs/html
find -name '*.pyc' -delete -or -name '*~' -delete
# Install the built egg and keep track of what was installed
install: dist docs
$(PYTHON) setup.py easy_install -m \
--record=installed.files \
--prefix=$(PREFIX) dist/*.egg
# Upload to pypi
publish:
$(PYTHON) setup.py register -r https://pypi.python.org/pypi sdist upload -r https://pypi.python.org/pypi
testpublish:
$(PYTHON) setup.py register -r https://testpypi.python.org/pypi sdist upload -r https://testpypi.python.org/pypi
test:
PYTHONPATH=../scanpointgenerator $(PYTHON) setup.py test
docs/html/index.html: $(wildcard docs/*.rst docs/*/*.rst docs/conf.py)
sphinx-build -W -b html docs docs/html
docs: dist docs/html/index.html