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


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

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

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

rake_test:
	rake test

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