aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
blob: b11d554f9adef3074062a0a861ce0ab64880952b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 :