-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
44 lines (29 loc) · 918 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
# This Makefile is for convenience as a reminder and shortcut for the most used commands
# Package folder
PACKAGE = mdsage
SAGE = sage
all: install doc
install:
$(SAGE) -pip install $(PIP_ARGS) .
uninstall:
$(SAGE) -pip uninstall .
develop:
$(SAGE) -pip install --upgrade -e .
test: develop
$(SAGE) -tp --force-lib $(PACKAGE)
coverage:
$(SAGE) -coverage $(PACKAGE)
doc: install
cd docs && $(SAGE) -sh -c "make html"
doc-pdf:
cd docs && $(SAGE) -sh -c "make latexpdf"
clean: clean-test clean-doc
clean-test: clean-build
find $(PACKAGE) -name "*.pyc" -type f -print0 -delete | xargs -0 echo "removing"
find $(PACKAGE) -name "*.so" -type f -print0 -delete | xargs -0 echo "removing"
clean-build:
find $(PACKAGE) -name "*.c" -type f -print0 -delete | xargs -0 echo "removing"
rm -rf build/*
clean-doc:
cd docs && $(SAGE) -sh -c "make clean"
.PHONY: all install develop test coverage doc doc-pdf