--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile Sun Jun 28 16:45:39 2009 +0300
@@ -0,0 +1,43 @@
+
+export PATH := $(PATH):/usr/lib/stardict-tools
+
+DICSETNAME = gavenkoa-dicts
+
+prefix = /usr/local
+datarootdir = $(prefix)/share
+datadir = $(datarootdir)/stardict
+dicdir = $(datadir)/dic/$(DICSETNAME)
+
+F_TAB = $(wildcard *.tab)
+FNAME = $(patsubst %.tab,%,$(F_TAB))
+F_DICT = $(patsubst %.tab,%.dict.dz,$(F_TAB))
+F_IFO = $(patsubst %.tab,%.ifo,$(F_TAB))
+
+all: dist
+
+verify: dist
+ @echo
+ @for dic in $(F_IFO); do \
+ stardict_verify $$dic; \
+ done
+
+dist: $(F_DICT)
+
+%.dict.dz: %.tab
+ tabfile $<
+
+install: dist
+ mkdir -p $(dicdir)
+ for dic in $(FNAME); do \
+ install -m 644 $$dic.dict.dz $(dicdir); \
+ install -m 644 $$dic.idx $(dicdir); \
+ install -m 644 $$dic.ifo $(dicdir); \
+ done
+
+uninstall:
+ rm -r -f $(dicdir)
+
+clean:
+ for dic in $(FNAME); do \
+ rm -f $$dic.dict.dz $$dic.idx $$dic.ifo; \
+ done