Skip to content

Commit

Permalink
Adapt Makefile to BSD and GNU Make
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Dec 6, 2022
1 parent 7fec8b7 commit a6f32a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

## 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")
NAME != \
ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.name"
VERSION != \
ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.version"

count_lines:
find lib -name "*.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
Expand Down

0 comments on commit a6f32a5

Please sign in to comment.