summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2024-08-06 23:28:51 +0100
committerNick White <git@njw.name>2024-08-06 23:28:51 +0100
commit8c9348700d3e0b399d480c96ca65bd1a603250f6 (patch)
treee743ed5dea9dc8522bb16c666c41f89e807a81f9
parent241b0b693511283811a1f73bda47cf844a403c7b (diff)
downloadoed2dict-8c9348700d3e0b399d480c96ca65bd1a603250f6.tar.bz2
oed2dict-8c9348700d3e0b399d480c96ca65bd1a603250f6.zip
Add stardict format to makefile too
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3814c93..34a6740 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ PREFIX = /usr
# Dependencies:
# - dictd format: dictfmt, dictzip
# - slob format: pyglossary, slob
+# - stardict format: pyglossary
NAME = 'Oxford English Dictionary, 2nd Edition'
@@ -12,7 +13,7 @@ SRC = 1.htm 2.htm 3.htm 4.htm 5.htm \
6.htm 7.htm 8.htm 9.htm 10.htm
JARGONS = $(SRC:.htm=.jargon)
-all: oed.jargon oed.dict.dz oed.slob
+all: oed.jargon oed.dict.dz oed.slob stardict/oed.ifo
$(JARGONS): htmtojargon.awk removeetags.pl symbols.sed \
xmlcleanup.sed xmlcleanup2.sed
@@ -50,6 +51,10 @@ oed.slob: oed.dict.dz
pyglossary oed.index $@
slob tag -n label -v "$(NAME)" oed.slob
+stardict/oed.ifo: oed.slob
+ mkdir -p stardict
+ pyglossary oed.slob stardict/$@
+
install: all
chmod 644 oed.dict.dz oed.index
cp oed.dict.dz oed.index $(DESTDIR)$(PREFIX)/share/dictd/