-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (71 loc) · 2.54 KB
/
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
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
#dots
PASSAGE_NAME=Exodus.10.1-11
#PASSAGE_NAME=Exodus.10.12-23
PASSAGE_URL_PARAM = $(PASSAGE_NAME)
# S2B=./sefaria2braille -e $(ENCODING)
FETCH=./fetchSefaria
PFILE_BASE = $(PASSAGE_NAME).utf8
PFILE = tmp/$(PFILE_BASE)
BRF_FILE = $(PASSAGE_NAME).$(ENCODING).$(DAGESHMODE).brf
PANGRAM_FILE = pangram.ashkenaz.$(ENCODING).$(DAGESHMODE)
PANGRAM_FILE_BRF = $(PANGRAM_FILE).brf
export ENCODING=CP
export DAGESHMODE=HEH_BCFT
export ENCODE=./encodeHebrew -e $(ENCODING) -m $(DAGESHMODE)
#OUTPUTS += out5.$(ENCODING).html
OUTPUTS += tmp/$(PASSAGE_NAME).$(ENCODING).$(DAGESHMODE).html
OUTPUTS += tmp/$(BRF_FILE)
OUTPUTS += tmp/pangram.ashkenaz.$(ENCODING).$(DAGESHMODE).html
OUTPUTS += tmp/pangram.ashkenaz.$(ENCODING).$(DAGESHMODE).brf
OUTPUTS += tmp/summary.$(ENCODING).$(DAGESHMODE).html
$(PFILE) :
$(FETCH) $(PASSAGE_URL_PARAM) > [email protected]
mv [email protected] $@
parshiot: brith.sadinoff.com/public/data/parshiot.js
brith.sadinoff.com/public/data/parshiot.js:
echo 'var parshiot = ' > [email protected]
bin/grabparshiot >> [email protected]
mv [email protected] $@
tmp/$(BRF_FILE): $(PFILE)
$(ENCODE) -a $(PFILE) > [email protected]
mv [email protected] $@
tmp/$(PASSAGE_NAME).$(ENCODING).$(DAGESHMODE).html: $(PFILE)
./make-html-with-brf $@ $(PFILE) $(BRF_FILE)
bo.utf8: bo.manifest.json
$(FETCH) -j $< > [email protected]
mv [email protected] $@
docs/bo.$(ENCODING).$(DAGESHMODE).brf: bo.utf8
$(ENCODE) -a $< > [email protected]
mv [email protected] $@
docs/bo.$(ENCODING).$(DAGESHMODE).html: bo.utf8
./make-html-with-brf $@ $< bo.$(ENCODING).$(DAGESHMODE).brf
bo: docs/bo.$(ENCODING).$(DAGESHMODE).html docs/bo.$(ENCODING).$(DAGESHMODE).brf
tmp/$(PANGRAM_FILE_BRF): pangram.ashkenaz
$(ENCODE) -a $< > [email protected]
mv [email protected] $@
tmp/pangram.ashkenaz.$(ENCODING).$(DAGESHMODE).html: pangram.ashkenaz
cat pre1.html > [email protected]
$(ENCODE) -w --add-word-ids $< >> [email protected]
echo "<td>" >> [email protected]
$(ENCODE) --add-word-ids --add-space -u --highlight-taamim $< >> [email protected]
(echo "<br><a href='$(PANGRAM_FILE_BRF)' >Download BRF</a></div></td>" ) >> [email protected]
# echo "<tr><td><pre>" >> [email protected]
# oduni -h -s $< >> [email protected]
# echo "</pre><td><pre>" >> [email protected]
# $(ENCODE) -u $<|perl -CS -lpe 's//\n/g' >> [email protected]
# echo "</pre></td>" >> [email protected]
echo "</table>" >> [email protected]
cat post-script.html >> [email protected]
mv [email protected] $@
tmp/summary.$(ENCODING).$(DAGESHMODE).html: tester.pl
./tester.pl -m $(DAGESHMODE) -e $(ENCODING) > [email protected];
mv [email protected] $@
push: $(OUTPUTS)
cp $(OUTPUTS) docs
-cp $(OUTPUTS) ~dsadinoff/www/tmp
-cp $(OUTPUTS) brith.sadinoff.com/public/test
clean:
-rm $(OUTPUTS) bo.utf8 docs/bo*
all:
# $(MAKE) clean push ENCODING=CO
$(MAKE) clean push ENCODING=CP