Skip to content

Commit d9971c5

Browse files
committed
Merge pull request #39 from kuriyama/support-gmake-on-bsd
Support ${MAKE} env variables and default value for mswin/bsd/solaris.
2 parents bd8111b + 3ae8015 commit d9971c5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/tasks/libsass.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
end
1818

1919
file "lib/libsass.so" => "Makefile" do
20-
sh 'make lib/libsass.so'
20+
make_program = ENV['MAKE']
21+
make_program ||= case RUBY_PLATFORM
22+
when /mswin/
23+
'nmake'
24+
when /(bsd|solaris)/
25+
'gmake'
26+
else
27+
'make'
28+
end
29+
sh "#{make_program} lib/libsass.so"
2130
end
2231
end

0 commit comments

Comments
 (0)