aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
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 :