diff options
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..4899cc2 --- /dev/null +++ b/src/makefile @@ -0,0 +1,15 @@ +DEFAULT_ENV = gen-env8 + +VENV ?= $(shell pwd)/$(DEFAULT_ENV) +PYTHON = VIRTUAL_ENV=$(VIRTUAL_ENV) $(VENV)/bin/python3 + +all: core messaging + +core: venv + $(PYTHON) generate.py --target targets/core.json | rustfmt > core.rs + +messaging: venv + $(PYTHON) generate.py | rustfmt > messaging.rs + +venv: + [ -d $(VENV) ] || (python3 -m venv $(DEFAULT_ENV) && VIRTUAL_ENV=$(VENV) $(VENV)/bin/pip install lark-parser) |