forked from sagemath/sage_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (24 loc) · 754 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
# This Makefile is for convenience as a reminder and shortcut for the most used commands
# Package folder
PACKAGE = sage_sample
# change to your sage command if needed
SAGE = sage
all: install test
install:
$(SAGE) -pip install --upgrade --no-index -v .
uninstall:
$(SAGE) -pip uninstall -vy sage_sample
develop:
$(SAGE) -pip install --upgrade -e .
test:
$(SAGE) setup.py test
coverage:
$(SAGE) -coverage $(PACKAGE)/*
doc: install #sphynx needs be able to import the package in order to build docs
cd docs && $(SAGE) -sh -c "make html"
doc-pdf: install
cd docs && $(SAGE) -sh -c "make latexpdf"
clean: clean-doc
clean-doc:
cd docs && $(SAGE) -sh -c "make clean"
.PHONY: all install develop test coverage clean clean-doc doc doc-pdf