edgedb/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

.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
parsers:
python setup.py build_parsers --inplace
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) && \
Docs reorg (#3039) * Move round and random to Numerics. Add references to len, contain, and find to bytes. * Data Model -> Schema Modeling. Simplify Overview page. Add Terminology Overview section. Split out separate Modules page. * Add Comparison page under schema modeling * Add Guides > Terminology * Add Guides > Migrations * Improve wording * Git comm * Remove Type System. Add Inheritance page. * Consolidate Object Types, User-defined types, and Free objects into one page * Add Using Projects guide * Add Data Model > Migrations * Centralize Array and Tuple docs into Standard Library. Remove Data Model > CollTypes, Data Model > Scalars, EdgeQL > Expressions > Tuple, and EdgeQL > Expressions > Array * Update DDL callout in Data Model > Overview * Write SDL > Links page. Add Modeling Relations guide. * Fix -diff parsing * Add Links docs * Add constraints, readonly, annotations to props page * Remove table from Terminology * Update Properties and Link Props pages. * Update Computeds and Indexes pages * Rework Aliases page * Rework Constraints page. Add constraint examples to Links and Using Link Props guide. * Remove references to 'computable'. Move Migrations to guides. Address PR reviews. * Reorganize file structure. Start EdgeQL docs. * Filled out literals page with funcops tables * Simplify datamodel > primitives * Write sets page * WIP * Write select page. Move introspection under Guides. Move Shaping and Function Calls to Reference. * Update command pages * WIP * Update edgedb-info docs * Add cfg to stdlib * Finish EdgeQL docs * Fix tests * Improve Inheritance page, add abstract annotation example, clean up Schema > Object Types * Clean up Primitive Types intro * Clean up funcops, rename * Remove link props page * Lowercase headers * Write using projects guide * Add ref to Sets * Update quickstart * Improve quickstart * Simplify quickstart * Add tabular See Also * Remove cookbook * Add tabular TOCs to top of large pages * Clarify wording * Address reviews. Commands -> EdgeQL. Update connection parameters page. * Move commands to Reference > EdgeQL * Move casts to Reference > EdgeQL. Standarize navbar casing * Document gotchas with relative durations * Add clients connection docs. Document delete source limitation. * Closes #3079 * Rename props.rst files * Document detached * Address @1st1 reviews * Remove .vscode * Update .gitignore * Remove extra code block * Rearrange constraints, fix typos * Clarify that {} is union * Document custom scalars * Clarify conneciton docs * Clean up edgedb_info * Address reviews
2021-11-10 22:27:39 +00:00
echo "$$out" > docs/reference/edgeql/casts.csv
build: build-reqs
find edb -name '*.pyx' | xargs touch
pip install -Ue .[docs,test]
2020-06-26 18:12:06 +00:00
clean:
git clean -Xfd -e "!/*.code-workspace" -e "!/*.vscode"