summaryrefslogtreecommitdiffstats
path: root/Makefile.data
blob: f05f1a605cdaa8c22224c6f1eb75f0db1e7049a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CLEANUP_FILES = bigram.db gb_char.bin gbk_char.bin \
	phrase_index.bin pinyin_index.bin

clean:
	cd data ; $(RM) $(CLEANUP_FILES) ; cd $(CURDIR)

build:
	cd utils/storage ; ./gen_binary_files ; cd $(CURDIR)
	cd utils/storage ; ./import_interpolation < ../../data/interpolation.text ; cd $(CURDIR)

rebuild:
	git reset --hard
	sed -i -e "s/#define LAMBDA_PARAMETER 0.588792/#define LAMBDA_PARAMETER $(LAMBDA_PARAMETER)/" src/include/novel_types.h
	make  >/dev/null 2>/dev/null