aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2016-11-02 02:53:46 +0000
committerFelix Hanley <felix@userspace.com.au>2016-11-02 02:53:46 +0000
commit2e2eade6c26ab1826c44d6bdb4b6418619ed5643 (patch)
treedbbdbe339434358b17874e93e7160703b71d53a3 /Makefile.inc
parenta454036ac1511b219249176f82ad5a7c66578c20 (diff)
downloadlahu-dictionary-master.tar.gz
lahu-dictionary-master.tar.bz2
Move to XDXF formatHEADmaster
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
new file mode 100644
index 0000000..b11d554
--- /dev/null
+++ b/Makefile.inc
@@ -0,0 +1,25 @@
+
+DICTFMTFLAGS += --utf8
+XSLTPROCESSOR ?= xsltproc -novalid
+
+formats = dictd stardict
+
+all: $(formats)
+
+sorted.xdxf: dict.xdxf $(basedir)/sort.xsl
+ $(XSLTPROCESSOR) $(basedir)/sort.xsl $< >$@
+
+$(formats): sorted.xdxf
+ makedict -o $@ -i xdxf ../$(dictname)/sorted.xdxf
+
+%.tar.gz: %.dict.dz %.index
+ tar czf $*.tar.gz $*.dict.dz $*.index
+
+clean:
+ find . -name 'sorted.xdxf' -delete
+
+.DELETE_ON_ERROR:
+
+.PHONY: all clean
+
+# vim: ft=make :