forked from geldata/gel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (21 loc) · 662 Bytes
/
Makefile
File metadata and controls
36 lines (21 loc) · 662 Bytes
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
.PHONY: build docs cython postgres postgres-ext pygments
.DEFAULT_GOAL := build
SPHINXOPTS:="-W -n"
cython:
find edb -name '*.pyx' | xargs touch
BUILD_EXT_MODE=py-only python setup.py build_ext --inplace
docs:
find docs -name '*.rst' | xargs touch
$(MAKE) -C docs html SPHINXOPTS=$(SPHINXOPTS) BUILDDIR="../build"
postgres:
python setup.py build_postgres
pygments:
out=$$(edb gen-meta-grammars edgeql) && \
echo "$$out" > edb/edgeql/pygments/meta.py
casts:
out=$$(edb gen-cast-table) && \
echo "$$out" > docs/reference/edgeql/casts.csv
build:
pip install -Ue .[docs,test]
clean:
git clean -Xfd -e "!/*.code-workspace" -e "!/*.vscode"