Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (40 sloc) 0.984 kb
1b4e808 @jordansissel 'dk add ruby fpm'
authored
1 GEMSPEC=$(shell ls *.gemspec)
2 VERSION=$(shell awk -F\" '/spec.version/ { print $$2 }' $(GEMSPEC))
3 NAME=$(shell awk -F\" '/spec.name/ { print $$2 }' $(GEMSPEC))
4 GEM=$(NAME)-$(VERSION).gem
5
6 .PHONY: test
7 test:
db98fe1 @jordansissel remove fpm/rubyfixes
authored
8 rm -rf .yardoc
1b4e808 @jordansissel 'dk add ruby fpm'
authored
9 sh notify-failure.sh ruby test/all.rb
10
11 .PHONY: testloop
12 testloop:
13 while true; do \
14 $(MAKE) test; \
15 $(MAKE) wait-for-changes; \
16 done
17
18 .PHONY: serve-coverage
19 serve-coverage:
20 cd coverage; python -mSimpleHTTPServer
21
22 .PHONY: wait-for-changes
23 wait-for-changes:
24 -inotifywait --exclude '\.swp' -e modify $$(find $(DIRS) -name '*.rb'; find $(DIRS) -type d)
25
26 .PHONY: package
27 package: | $(GEM)
28
29 .PHONY: gem
30 gem: $(GEM)
31
32 $(GEM):
33 gem build $(GEMSPEC)
34
35 .PHONY: test-package
36 test-package: $(GEM)
37 # Sometimes 'gem build' makes a faulty gem.
38 gem unpack $(GEM)
39 rm -rf ftw-$(VERSION)/
40
41 .PHONY: publish
42 publish: test-package
43 gem push $(GEM)
44
45 .PHONY: install
46 install: $(GEM)
47 gem install $(GEM)
2b2fa4d @jordansissel add 'clean' target
authored
48
49 .PHONY:
50 clean:
c01414c @jordansissel purge yardoc on clean
authored
51 rm -rf package-*/ *.rpm *.deb *.gz *.tar *.gem .yardoc/
Something went wrong with that request. Please try again.