-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 738 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 738 Bytes
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
# 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
# It can depend on other targets e.g. the .py files produced by pyuic4
dist: setup.py $(wildcard topaz3/*.py)
MODULEVER=$(MODULEVER) $(PYTHON) setup.py bdist_egg
touch dist
$(MAKE) -C documentation
# Clean the module
clean:
$(PYTHON) setup.py clean
-rm -rf build dist *egg-info installed.files prefix
-find -name '*.pyc' -exec rm {} \;
$(MAKE) -C documentation clean
# Install the built egg and keep track of what was installed
install: dist
$(PYTHON) setup.py easy_install -m \
--record=installed.files \
--prefix=$(PREFIX) dist/*.egg