-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
73 lines (54 loc) · 1.58 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Makefile to build, test and install pynauty
include Makefile.common
pynauty: tools
$(PYTHON) setup.py build
.PHONY: tests
tests: pynauty
PYTHONPATH="${LIBPATH}:$(PYTHONPATH)" $(PYTHON) $(MODULE_TEST) pytest
PYTHONPATH="${LIBPATH}:$(PYTHONPATH)" $(PYTHON) -m pytest src/pynauty/tests
minimal-test: pynauty
PYTHONPATH="${LIBPATH}:$(PYTHONPATH)" $(PYTHON) src/pynauty/tests/test_minimal.py
install:
ifdef VIRTUAL_ENV
$(PIP) install --upgrade .
else
$(PIP) install --user --upgrade .
endif
uninstall:
$(PIP) uninstall pynauty
.PHONY: docs
docs: install
$(PYTHON) $(MODULE_TEST) sphinx
$(MAKE) -C docs html
clean-docs:
$(MAKE) -C docs clean
clean:
rm -fr build
rm -fr dist
rm -f MANIFEST
rm -fr tests/{__pycache__,data_graphs.pyc}
rm -fr .pytest_cache/
rm -fr pynauty.egg-info
virtenv-create:
$(PYTHON) -m venv $(VENV_DIR)
@echo Created virtualenv: $(VENV_DIR)/
@echo To activate it type: source $(PWD)/$(VENV_DIR)/bin/activate
virtenv-create-global:
$(PYTHON) -m venv $(VENV_DIR) --system-site-packages
@echo Created virtualenv: $(VENV_DIR)/
@echo To activate it type: source $(PWD)/$(VENV_DIR)/bin/activate
virtenv-delete:
rm -fr $(VENV_DIR)
@echo Deleted virtualenv: $(VENV_DIR)/
@echo If it is still active, deactivate it!
clobber: clean clean-nauty clean-docs virtenv-delete
# nauty targets
nauty-config:
$(MAKE) -C $(SOURCE_DIR) -f Makefile.nauty $@
nauty-objects:
$(MAKE) -C $(SOURCE_DIR) -f Makefile.nauty $@
nauty-programs:
$(MAKE) -C $(SOURCE_DIR) -f Makefile.nauty $@
clean-nauty:
$(MAKE) -C $(SOURCE_DIR) -f Makefile.nauty $@
# vim: filetype=make syntax=make