summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2013-05-12 18:29:42 +0100
committerNick White <git@njw.me.uk>2013-05-12 18:29:42 +0100
commitb2572f6fa6dbe9e810cbdfcc96f50f04b2fc139c (patch)
treeb1831562fc6d76401adb50807b8eff7c00026fd5 /Makefile
parent626ecaf28a3c90da2ac1585414e59b2a376d401d (diff)
downloadoed2dict-b2572f6fa6dbe9e810cbdfcc96f50f04b2fc139c.tar.bz2
oed2dict-b2572f6fa6dbe9e810cbdfcc96f50f04b2fc139c.zip
Add README, make things a bit more general
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ca485e4..4927483 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-# requires dictfmt and dictzip tools (from the package dictfmt)
-
PREFIX = /usr
SRC = 1.htm 2.htm 3.htm 4.htm 5.htm \
@@ -8,7 +6,7 @@ JARGONS = $(SRC:.htm=.jargon)
$(JARGONS): htmtojargon.awk symbols.sed xmlcleanup.sed xmlcleanup2.sed
-all: oed.dict.dz
+all: oed.jargon oed.dict.dz
.htm.jargon:
awk -f htmtojargon.awk < "$<" \
@@ -20,12 +18,15 @@ all: oed.dict.dz
symbols.sed: symbols symbolstosed.awk
awk -f symbolstosed.awk < symbols > $@
-oed.dict: $(JARGONS)
- cat $(JARGONS) \
+oed.jargon: $(JARGONS)
+ cat $(JARGONS) > $@
+
+oed.dict: oed.jargon
+ cat $< \
| dictfmt -j --utf8 \
--columns 0 --headword-separator ' ' \
-u http://njw.me.uk/oed \
- -s "Oxford English Dictionary Second Edition v3" \
+ -s "Oxford English Dictionary, 2nd Edition" \
oed
oed.dict.dz: oed.dict