-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (30 loc) · 1.01 KB
/
Makefile
File metadata and controls
45 lines (30 loc) · 1.01 KB
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
# This Makefile is for convenience as a reminder and shortcut for the most used commands
# Check if SageMath is installed.
# ifeq ($(shell which sage >/dev/null 2>&1; echo $$?), 1)
# $(error The 'sage' command was not found. Make sure you have SageMath installed (cf. https://www.sagemath.org/).)
# endif
# Package name
PACKAGE = drinfeld_modular_forms
# Package source directory
PACKAGE_SRC = src/$(PACKAGE)
# change to your sage command if needed
SAGE = sage
all: install
install:
$(SAGE) -pip install --upgrade --no-index -v .
uninstall:
$(SAGE) -pip uninstall $(PACKAGE)
develop:
$(SAGE) -pip install --upgrade -e .
test: # run the doctest
$(SAGE) -t $(PACKAGE_SRC)
coverage: # check the documentation coverage
$(SAGE) -coverage $(PACKAGE_SRC)/*
doc:
cd docs && $(SAGE) -sh -c "make html"
build-dist: # build the distribution for PyPI package
$(sage) -sh -c "python3 -m build"
clean: clean-doc
clean-doc:
cd docs && rm -R html && rm -R doctrees
.PHONY: all install develop coverage clean clean-doc doc test