summaryrefslogtreecommitdiff
path: root/Makefile
blob: abebe275605a72c54cf5ab5771d506ee9e07fd36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version := $$(grep s.version nlp_ruby.gemspec | awk '{print $$3}' | sed "s|'||g")


all: lib/nlp_ruby.rb lib/nlp_ruby/bleu.rb lib/nlp_ruby/dag.rb lib/nlp_ruby/fileutil.rb lib/nlp_ruby/misc.rb lib/nlp_ruby/semirings.rb lib/nlp_ruby/SparseVector.rb lib/nlp_ruby/stringutil.rb lib/nlp_ruby/tfidf.rb lib/nlp_ruby/Translation.rb
	gem build nlp_ruby.gemspec

install:
	gem install nlp_ruby-$(version).gem

clean:
	rm nlp_ruby-$(version).gem
	gem uninstall nlp_ruby -v $(version)

rake_test:
	rake test

publish:
	gem push nlp_ruby-$(version).gem