From 2e2eade6c26ab1826c44d6bdb4b6418619ed5643 Mon Sep 17 00:00:00 2001 From: Felix Hanley Date: Wed, 2 Nov 2016 09:53:46 +0700 Subject: Move to XDXF format --- Makefile.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile.inc (limited to 'Makefile.inc') 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 : -- cgit v1.2.3