Makefile in et-orbi-1.1.2 vs Makefile in et-orbi-1.1.3
- old
+ new
@@ -1,7 +1,7 @@
-## core floraison make ##
+## gem tasks ##
NAME = \
$(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.name")
VERSION = \
$(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.version")
@@ -11,16 +11,19 @@
find spec -name "*_spec.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
cl: count_lines
gemspec_validate:
@echo "---"
- ruby -e "s = eval(File.read(Dir['*.gemspec'].first)); s.validate"
+ ruby -e "s = eval(File.read(Dir['*.gemspec'].first)); p s.validate"
@echo "---"
name: gemspec_validate
@echo "$(NAME) $(VERSION)"
+cw:
+ find lib -name "*.rb" -exec ruby -cw {} \;
+
build: gemspec_validate
gem build $(NAME).gemspec
mkdir -p pkg
mv $(NAME)-$(VERSION).gem pkg/
@@ -40,7 +43,7 @@
bundle exec ruby -Ilib -r et-orbi -e "EtOrbi._make_info"
## done ##
-.PHONY: build info push spec
+.PHONY: count_lines gemspec_validate name cw build push spec info