Sha256: 00557c45860451870f7b93f09e17167e37acbb68c5b26f34b0af1c92bb1121b9

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

namespace :libsass do
  desc "Compile libsass"
  task compile: "ext/libsass/lib/libsass.so"

  file "ext/libsass/Makefile" do
    sh "git submodule update --init"
  end

  file "ext/libsass/lib/libsass.so" => "ext/libsass/Makefile" 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sassc-1.5.0 lib/tasks/libsass.rb