-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (48 loc) · 1.28 KB
/
Makefile
File metadata and controls
70 lines (48 loc) · 1.28 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
SHELL := bash
export NVM_DIR=$(PWD)/nvm
export NVM_VERSION=v0.40.4
export ISIMIP_LOG_LEVEL=WARNING
.PHONY: all csvtables definitions glossary pattern protocol schema tree \
serve typos app watch lint clean cleannode cleanenv distclean
all: csvtables definitions glossary pattern protocol schema tree
csvtables:
python3 build/csvtables.py
definitions:
python3 build/definitions.py
glossary:
python3 build/glossary.py
pattern:
python3 build/pattern.py
protocol:
python3 build/protocol.py
schema:
python3 build/schema.py
tree:
python3 build/tree.py
serve:
python3 -m http.server -b 127.0.0.1 8080 -d output
typos:
typos --write-changes --force-exclude
app: nvm
. $(NVM_DIR)/nvm.sh; nvm use && npm ci && npm run build
watch: nvm node_modules
. $(NVM_DIR)/nvm.sh; nvm use && npm ci && npm run watch
lint: nvm node_modules
. $(NVM_DIR)/nvm.sh; nvm use && npm ci && npm run lint
nvm:
mkdir -p $(NVM_DIR)
NVM_DIR=$(NVM_DIR) PROFILE=/dev/null \
bash -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(NVM_VERSION)/install.sh | bash > /dev/null'
. $(NVM_DIR)/nvm.sh; nvm install
node_modules:
. $(NVM_DIR)/nvm.sh; nvm use && npm ci
clean:
rm -fr output
cleannode:
rm -rf nvm node_modules
cleanenv:
rm -fr env
distclean:
rm -fr output
rm -rf nvm node_modules
rm -fr env