-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (45 loc) · 1.5 KB
/
Makefile
File metadata and controls
59 lines (45 loc) · 1.5 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
# SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
# help:
# @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
# %: Makefile
# @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: build-playground
build-playground: check-jq
@echo "Building playground..."
rm -rf public/lite && \
jupyter lite build && \
WHL_FILE=$$(ls pypi | grep .whl) ;\
python tools/patch_jlite_json.py \
public/lite/jupyter-lite.json \
--whl-url "pypi/$$WHL_FILE" \
--disable-dirty && \
cp -frpv pyodide public/lite/ && \
cp -frpv pypi public/lite/extensions/@jupyterlite/pyodide-kernel-extension/static/
.PHONY: wheel
wheel: clean-wheel
$(VENV_PATH)/bin/python -m build
.PHONY: clean-wheel
clean-wheel:
rm -rf public/lite
.PHONY: clean-playground
clean-playground:
rm -rf public/lite
.PHONY: check-jq
check-jq:
which jq || (echo "jq is not installed. Please install jq to continue." && exit 1)
convert-tdom-examples-to-ipynb:
rm -fr content/*
cp greeting.ipynb content/
python tools/convert_py_to_ipynb.py
@echo "Converted tdom examples to ipynb format."