diff options
author | Peng Wu <alexepico@gmail.com> | 2011-07-27 19:11:25 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-07-27 19:11:25 +0800 |
commit | a4fddd81d5ba9638ded837fd3006b99184a9b6b4 (patch) | |
tree | 9bc2c81603e64763ae082ab2c3270c4b804fe4d1 | |
parent | 35ef8dadd9f969f10ae7c4910e1417c848ecafd5 (diff) | |
download | libpinyin-a4fddd81d5ba9638ded837fd3006b99184a9b6b4.tar.gz libpinyin-a4fddd81d5ba9638ded837fd3006b99184a9b6b4.tar.xz libpinyin-a4fddd81d5ba9638ded837fd3006b99184a9b6b4.zip |
improve Makefile.data
-rw-r--r-- | Makefile.data | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile.data b/Makefile.data index 8cff25f..b1fd706 100644 --- a/Makefile.data +++ b/Makefile.data @@ -8,9 +8,7 @@ build: cd utils/storage ; ./gen_binary_files ; cd $(CURDIR) cd utils/storage ; ./import_interpolation < ../../data/interpolation.text ; cd $(CURDIR) -prepare: - sed -i -e "s/#define LAMBDA_PARAMETER 0.588792/#define LAMBDA_PARAMETER @@LAMBDA_PARAMETER@@/" src/include/novel_types.h - rebuild: - sed -i -e "s/@@LAMBDA_PARAMETER@@/$(LAMBDA_PARAMETER)/" src/include/novel_types.h + git reset --hard + sed -i -e "s/#define LAMBDA_PARAMETER 0.588792/#define LAMBDA_PARAMETER $(LAMBDA_PARAMETER)/" src/include/novel_types.h make |