LANGS = bg ca da de en eo es fr it nl no po sv uk
# pl not working
+DICTS = $(addsuffix .dict,$(LANGS))
+
MAKEFLAGS = -s
all:
count:
wc -l $(ROOT_DICT)/*
+dicts: $(DICTS)
+
+$(DICTS):%:
+ lang=$(@:.dict=); \
+ apt search aspell-$$lang && \
+ ( dpkg -l aspell-$$lang | grep ^ii || \
+ sudo apt install aspell-$$lang ) && \
+ aspell -d $$lang dump master | aspell -l $$lang expand | \
+ tr -s '[:space:]' '\n' | \
+ LC_ALL=C sort -S28G -u > $$lang.dict
+
$(ROOT_DICT)/bg.json: /usr/share/dict/bulgarian Makefile
echo Building $@ from $<
iconv -f Windows-1251 -t utf-8 $< | \