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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
tooldir = $(top_builddir)/src/tools
if ENABLE_BINARY_DATA
chindexs = ch_index_begin.dat \
ch_index_phone.dat
else
chindexs = ch_index.dat
endif
datas = \
us_freq.dat \
dict.dat \
ph_index.dat \
fonetree.dat \
$(chindexs)
generated_header = $(top_builddir)/src/chewing-definition.h
all: checkdata_stamp gendata_stamp
checkdata_stamp: phone.cin tsi.src
@echo "timestamp" > $@
gendata_stamp:
if test -f $(generated_header); then \
echo "chewing-definition.h exists."; \
else \
$(MAKE) gendata; \
fi
@echo "timestamp" > $@
gendata:
$(tooldir)/sort_word
$(tooldir)/sort_dic $(top_srcdir)/data/tsi.src
$(tooldir)/maketree
-rm -f phoneid.dic
-mv -f chewing-definition.h $(top_builddir)/src/
install-data-local: $(datas) pinyin.tab swkb.dat symbols.dat
$(mkinstalldirs) $(DESTDIR)/$(datadir)/chewing
$(INSTALL_DATA) $(datas) pinyin.tab swkb.dat symbols.dat \
$(DESTDIR)/$(datadir)/chewing
CLEANFILES = $(datas) gendata_stamp checkdata_stamp $(generated_header)
|