-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (32 loc) · 892 Bytes
/
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
# This Makefile is for convenience as a reminder and shortcut for the most used commands
# Package folder
PACKAGE = pycontrolledreduction
# change to your sage command if needed
SAGE = sage
all: install test
build:
$(SAGE) -python setup.py build_ext
install:
$(SAGE) -python setup.py install
sdist:
$(SAGE) -python setup.py sdist
test:
$(SAGE) -python setup.py test
pip-install:
$(SAGE) -pip install --upgrade --no-index -v .
pip-uninstall:
$(SAGE) -pip uninstall .
pip-develop:
$(SAGE) -pip install --upgrade -e .
coverage:
$(SAGE) -coverage $(PACKAGE)/*
doc:
cd docs && $(SAGE) -sh -c "make html"
doc-pdf:
cd docs && $(SAGE) -sh -c "make latexpdf"
clean: clean-doc
rm -rf build dist *.egg-info
rm -rf $(PACKAGE)/*.c
clean-doc:
cd docs && make clean
.PHONY: all build install test coverage sdist pip-install pip-uninstall pip-develop clean clean-doc doc doc-pdf