-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 911 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
PIP ?= pip3
RM ?= rm
PYTHON ?= python
# Variable indicating Mathics3 Modules you have available on your system, in latex2doc option format
MATHICS3_MODULE_OPTION ?=--load-module pymathics.trepan,pymathics.graph,pymathics.natlang
#: Default target - same as "develop"
all: doctest-data rst-documentation user-docs
.PHONY: developer-docs clean
doctest-data: setup
MATHICS_CHARACTER_ENCODING="UTF-8" $(PYTHON) -m mathics.docpipeline --output $(MATHICS3_MODULE_OPTION)
$(PYTHON) generate/testdata.py
rst-documentation:
$(PYTHON) generate/doc2rst.py $(MATHICS3_MODULE_OPTION)
#: Build developer guide
user-docs:
$(MAKE) -C docs html latexpdf
#: Install necessary Python modules
setup:
pip install -r requirements.txt
#: Rebuild docs from scratch
build rebuild:
$(MAKE) -C docs $<
#: Wipe derivable files
clean:
$(MAKE) -C docs $<
rm -f -R docs/manual
rm -f -R docs/reference-of-builtin-symbols