forked from edgedb/edgedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (30 loc) · 1.13 KB
/
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
45
46
47
48
49
50
51
.PHONY: build docs cython postgres postgres-ext pygments build-reqs
.DEFAULT_GOAL := build
SPHINXOPTS:="-W -n"
BUILD_REQS_SCRIPT='print("\x00".join(__import__("build").ProjectBuilder(".").build_system_requires))'
build-reqs:
python -m pip install --no-build-isolation build
python -c $(BUILD_REQS_SCRIPT) | xargs -0 python -m pip install --no-build-isolation
cython: build-reqs
find edb -name '*.pyx' | xargs touch
BUILD_EXT_MODE=py-only python setup.py build_ext --inplace
rust: build-reqs
BUILD_EXT_MODE=rust-only python setup.py build_ext --inplace
docs: build-reqs
find docs -name '*.rst' | xargs touch
$(MAKE) -C docs html SPHINXOPTS=$(SPHINXOPTS) BUILDDIR="../build"
postgres: build-reqs
python setup.py build_postgres
ui: build-reqs
python setup.py build_ui
pygments: build-reqs
out=$$(edb gen-meta-grammars edgeql) && \
echo "$$out" > edb/tools/pygments/edgeql/meta.py
casts: build-reqs
out=$$(edb gen-cast-table) && \
echo "$$out" > docs/reference/edgeql/casts.csv
build: build-reqs
find edb -name '*.pyx' | xargs touch
pip install -Ue .[docs,test]
clean:
git clean -Xfd -e "!/*.code-workspace" -e "!/*.vscode"