summaryrefslogtreecommitdiffstats
path: root/Makefile.data
blob: 473a375b97538032f42cbf2a93f4dceea52e4b45 (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