-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
28 lines (19 loc) · 878 Bytes
/
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
PYTHON=PYTHONPATH='$(shell pwd)' "$(shell pwd)/venv/bin/python"
DICTIONARY_FOLDER=definition/dictionary
.PHONY: all
all: site validate normalize
venv:
virtualenv -ppython3.6 venv
$(PYTHON) -m pip install -r requirements.txt
validate: venv
$(PYTHON) scripts/validate_dictionary.py --dictionary-folder $(DICTIONARY_FOLDER)
normalize: venv
$(PYTHON) scripts/normalize_dictionary.py --dictionary-folder $(DICTIONARY_FOLDER)
expand_semes: venv
$(PYTHON) scripts/normalize_dictionary.py --dictionary-folder $(DICTIONARY_FOLDER) --expand-root
site: venv
$(PYTHON) server/generate_site.py docs https://iemldev.github.io/ieml-dictionary/ --dictionary-folder $(DICTIONARY_FOLDER)
site-debug: venv
$(PYTHON) server/generate_site.py docs-debug http://localhost:8000/ --dictionary-folder $(DICTIONARY_FOLDER)
serve: site-debug
cd docs-debug && $(PYTHON) -m http.server 8000