-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
127 lines (98 loc) · 3.42 KB
/
Copy pathMakefile
File metadata and controls
127 lines (98 loc) · 3.42 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Thin wrapper around scripts/fetch-sources.sh and scripts/build.py.
# Use `make help` to see available targets.
PYTHON ?= python3
BUILD := $(PYTHON) -m scripts.build
# USJ-dependent builders — re-run these after fetching a new BSB-USJ release.
USJ_BUILDERS := --display --index-cc-by --index-cc-by-split --helloao --text-only
.PHONY: help fetch fetch-force build all validate \
display index-pd index-cc-by index-cc-by-split helloao text-only \
concordance english-concordance geography proper-names versification lexicon \
greek-tsv hebrew-tsv lang-tsv \
refresh-from-usj clean-output \
msb display-msb index-pd-msb index-cc-by-msb index-cc-by-split-msb
help:
@echo "Source data:"
@echo " make fetch Download/refresh source data (USJ, TSV, OSHB, …)"
@echo " make fetch-force Re-download all source data, ignoring caches"
@echo ""
@echo "Build everything:"
@echo " make all Run the full build pipeline (validate at end)"
@echo " make validate Validate existing outputs"
@echo ""
@echo "Individual builders:"
@echo " make display Per-chapter JSON for web display"
@echo " make index-pd Public-domain index"
@echo " make index-cc-by CC-BY index (single file)"
@echo " make index-cc-by-split CC-BY index (per-chapter)"
@echo " make helloao HelloAO output"
@echo " make text-only Plain-text per-chapter files"
@echo " make concordance Greek/Hebrew concordance"
@echo " make english-concordance"
@echo " make geography"
@echo " make proper-names"
@echo " make versification"
@echo " make lexicon"
@echo " make greek-tsv Slim Greek-only TSV export"
@echo " make hebrew-tsv Slim Hebrew-only TSV export"
@echo " make lang-tsv Both greek-tsv + hebrew-tsv"
@echo ""
@echo "Composite:"
@echo " make refresh-from-usj fetch + rebuild all USJ-dependent outputs"
@echo " ($(USJ_BUILDERS))"
@echo ""
@echo "MSB (Majority Standard Bible, NT-only sibling edition of BSB):"
@echo " make msb Build all MSB outputs (display, index-pd, index-cc-by(-split))"
@echo " make display-msb MSB per-chapter JSON for web display"
@echo " make index-pd-msb MSB public-domain index"
@echo " make index-cc-by-msb MSB CC-BY index (single file)"
@echo " make index-cc-by-split-msb MSB CC-BY index (per-chapter)"
fetch:
bash scripts/fetch-sources.sh
fetch-force:
bash scripts/fetch-sources.sh --force
all:
$(BUILD) --all
validate:
$(BUILD) --validate
display:
$(BUILD) --display
index-pd:
$(BUILD) --index-pd
index-cc-by:
$(BUILD) --index-cc-by
index-cc-by-split:
$(BUILD) --index-cc-by-split
helloao:
$(BUILD) --helloao
text-only:
$(BUILD) --text-only
concordance:
$(BUILD) --concordance
english-concordance:
$(BUILD) --english-concordance
geography:
$(BUILD) --geography
proper-names:
$(BUILD) --proper-names
versification:
$(BUILD) --versification
lexicon:
$(BUILD) --lexicon
greek-tsv:
$(BUILD) --greek-tsv
hebrew-tsv:
$(BUILD) --hebrew-tsv
lang-tsv: greek-tsv hebrew-tsv
# Fetch a fresh BSB-USJ release and rebuild every output that depends on it.
refresh-from-usj: fetch
$(BUILD) $(USJ_BUILDERS)
msb:
$(BUILD) --msb
display-msb:
$(BUILD) --display-msb
index-pd-msb:
$(BUILD) --index-pd-msb
index-cc-by-msb:
$(BUILD) --index-cc-by-msb
index-cc-by-split-msb:
$(BUILD) --index-cc-by-split-msb