-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rakefile fixups for easy Gem install + testing
- Loading branch information
Edward Ocampo-Gooding
committed
Jun 22, 2015
1 parent
c21ccfd
commit 1f4c9b9
Showing
4 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require_relative '../lib/tasks/libsass' | ||
|
||
task default: 'libsass:compile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace :libsass do | ||
desc "Compile libsass" | ||
task compile: "ext/libsass/lib/libsass.so" | ||
|
||
file "ext/libsass/.git" do | ||
sh "git submodule update --init" | ||
end | ||
|
||
file "ext/libsass/lib/libsass.so" => "ext/libsass/.git" do | ||
libsass_path = "" | ||
if Dir.pwd.end_with?('/ext') | ||
libsass_path = "libsass" | ||
else | ||
libsass_path = "ext/libsass" | ||
end | ||
|
||
cd libsass_path do | ||
sh 'make lib/libsass.so LDFLAGS="-Wall -O2"' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters