-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (29 loc) · 872 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SHELL := /bin/bash
# TERMBASE_VERSION := $(shell yq r metadata.yaml version)
# TERMBASE_XLSX_PATH := $(shell yq r metadata.yaml filename)
TERMBASE_VERSION := 20201217
TERMBASE_XLSX_PATH := data/${TERMBASE_VERSION}-iev-export.xlsx
all: concepts
clean:
rm -rf termbase.xlsx
distclean: clean
rm -rf concepts
termbase.xlsx:
cp '${TERMBASE_XLSX_PATH}' termbase.xlsx
concepts: termbase.xlsx
bundle exec iev-termbase xlsx2yaml $<;
concepts.sqlite3: termbase.xlsx
bundle exec iev-termbase xlsx2db $< --output $@;
concepts.zip: concepts
zip -9 -r $@ concepts images
# update-init:
# git submodule update --init
#
# update-modules:
# git submodule foreach git pull origin master
.PHONY: all clean distclean
# update-init update-modules
test-xlsx2yaml: concepts
test-xlsx2db: concepts.sqlite3
test-db2yaml: concepts.sqlite3
bundle exec iev-termbase db2yaml $<;