This repository was archived by the owner on Mar 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
56 lines (44 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PYTHON?=python
SETUPFLAGS=
TESTRUNNER = $(shell which nosetests)
API_DOC_DIR=docs/html
all: inplace
# Build in-place
inplace:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) build_ext --inplace
build:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) build
debug:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) build_ext --pyrex-gdb --inplace
install:
$(PYTHON) setup.py $(SETUPFLAGS) install
test:
PYTHONPATH=. $(PYTHON) $(TESTRUNNER) test
clean:
-find . \( -name '*.o' -o -name '*.so' -o -name '*.py[cod]' -o -name '*.dll' \) -exec rm -f {} \;
-rm vixDiskLib/*.c
-rm -rf build dist
help:
@echo 'Commonly used make targets:'
@echo ' all - build program and documentation'
@echo ' install - install program and man pages to PREFIX ($(PREFIX))'
@echo ' install-home - install with setup.py install --home=HOME ($(HOME))'
@echo ' local - build for inplace usage'
@echo ' tests - run all tests in the automatic test suite'
@echo ' test-foo - run only specified tests (e.g. test-merge1)'
@echo ' dist - run all tests and create a source tarball in dist/'
@echo ' clean - remove files created by other targets'
@echo ' (except installed files or dist source tarball)'
@echo ' update-pot - update i18n/hg.pot'
@echo
@echo 'Example for a system-wide installation under /usr/local:'
@echo ' make all && su -c "make install" && hg version'
@echo
@echo 'Example for a local installation (usable in this directory):'
@echo ' make local && ./hg version'
docs:
-rm -rf $(API_DOC_DIR)
-bin/docs
deploy_docs:
ghp-import -m "Updated documentation" -p docs/build/html
.PHONY: help all inplace build clean docs