equal
deleted
inserted
replaced
|
1 |
|
2 export PATH := $(PATH):/usr/lib/stardict-tools |
|
3 |
|
4 DICSETNAME = gavenkoa-dicts |
|
5 |
|
6 prefix = /usr/local |
|
7 datarootdir = $(prefix)/share |
|
8 datadir = $(datarootdir)/stardict |
|
9 dicdir = $(datadir)/dic/$(DICSETNAME) |
|
10 |
|
11 F_TAB = $(wildcard *.tab) |
|
12 FNAME = $(patsubst %.tab,%,$(F_TAB)) |
|
13 F_DICT = $(patsubst %.tab,%.dict.dz,$(F_TAB)) |
|
14 F_IFO = $(patsubst %.tab,%.ifo,$(F_TAB)) |
|
15 |
|
16 all: dist |
|
17 |
|
18 verify: dist |
|
19 @echo |
|
20 @for dic in $(F_IFO); do \ |
|
21 stardict_verify $$dic; \ |
|
22 done |
|
23 |
|
24 dist: $(F_DICT) |
|
25 |
|
26 %.dict.dz: %.tab |
|
27 tabfile $< |
|
28 |
|
29 install: dist |
|
30 mkdir -p $(dicdir) |
|
31 for dic in $(FNAME); do \ |
|
32 install -m 644 $$dic.dict.dz $(dicdir); \ |
|
33 install -m 644 $$dic.idx $(dicdir); \ |
|
34 install -m 644 $$dic.ifo $(dicdir); \ |
|
35 done |
|
36 |
|
37 uninstall: |
|
38 rm -r -f $(dicdir) |
|
39 |
|
40 clean: |
|
41 for dic in $(FNAME); do \ |
|
42 rm -f $$dic.dict.dz $$dic.idx $$dic.ifo; \ |
|
43 done |