summaryrefslogtreecommitdiff
path: root/Makefile
blob: 13344403795b80748586fc9207a3a0fc8bcce6e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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/hypergraph.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