Add sha256 file generation
Makefile
2 | 2 | ||
3 | 3 | JMDICT_LANGS=dut fre ger hun rus slv spa swe | |
4 | 4 | ||
5 | - | DICOS=dicos/JMdict_e.nani $(addprefix dicos/JMdict_, $(addsuffix .nani, $(JMDICT_LANGS))) | |
5 | + | DICOS=dicos/JMdict_e.nani $(addprefix dicos/JMdict_, $(addsuffix .nani, $(JMDICT_LANGS))) dicos/radicals.nani | |
6 | 6 | ||
7 | 7 | PAGES=blog.scm data.scm documentation.scm e404.scm feeds.scm index.scm mentions.scm | |
8 | 8 | ||
… | |||
10 | 10 | tools/i18n.scm tools/theme.scm | |
11 | 11 | ||
12 | 12 | WEB_FILES= $(HAUNT_FILES) \ | |
13 | - | $(shell find css) $(shell find images) $(DICOS) \ | |
13 | + | $(shell find css) $(shell find images) $(DICOS) $(addsuffix .sha256, $(DICOS)) \ | |
14 | 14 | ||
15 | 15 | DICO_MODULES=modules/nani/trie.scm modules/nani/result.scm modules/nani/jmdict/trie.scm \ | |
16 | 16 | modules/nani/jmdict/serialize.scm modules/nani/jmdict/xml.scm \ | |
… | |||
72 | 72 | po/nani.pot: $(HAUNT_FILES) | |
73 | 73 | xgettext --keyword=_ --language=scheme --add-comments --sort-output --from-code UTF-8 -o $@ $^ | |
74 | 74 | ||
75 | + | %.sha256: % | |
76 | + | sha256sum $< | cut -f1 -d' ' > $@ | |
77 | + | ||
75 | 78 | include radicals.mk |