Skip to content

Commit

Permalink
Make compile_query_only also go to bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jan 19, 2013
1 parent dffafbf commit fcf54c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clean_query_only.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
rm -rf {lm,util,util/double-conversion}/*.o query kenlm_max_order build_binary */*_test lm/test.binary* lm/test.arpa?????? util/file_piece.cc.gz
rm -rf {lm,util,util/double-conversion}/*.o bin/{query,kenlm_max_order,build_binary}
7 changes: 4 additions & 3 deletions compile_query_only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CXXFLAGS="-I. -O3 -DNDEBUG -DHAVE_ZLIB -DKENLM_MAX_ORDER=6 $CXXFLAGS"
for i in util/{bit_packing,ersatz_progress,exception,file,file_piece,murmur_hash,mmap,pool,read_compressed,scoped,string_piece,usage} lm/{bhiksha,binary_format,config,lm_exception,model,quantize,read_arpa,search_hashed,search_trie,sizes,trie,trie_sort,value_build,virtual_interface,vocab} util/double-conversion/{bignum,bignum-dtoa,cached-powers,diy-fp,double-conversion,fast-dtoa,fixed-dtoa,strtod}; do
g++ $CXXFLAGS -c $i.cc -o $i.o
done
g++ $CXXFLAGS lm/build_binary.cc {lm,util,util/double-conversion}/*.o -lz -o build_binary
g++ $CXXFLAGS lm/ngram_query.cc {lm,util,util/double-conversion}/*.o -lz -o query
g++ $CXXFLAGS lm/max_order.cc -o kenlm_max_order
mkdir -p bin
g++ $CXXFLAGS lm/build_binary.cc {lm,util,util/double-conversion}/*.o -lz -o bin/build_binary
g++ $CXXFLAGS lm/ngram_query.cc {lm,util,util/double-conversion}/*.o -lz -o bin/query
g++ $CXXFLAGS lm/max_order.cc -o bin/kenlm_max_order

0 comments on commit fcf54c4

Please sign in to comment.