Sha256: 12b5d75515798ce80fc355020133828065a2ca791f7543b1ef66c72f6531f9d5

Contents?: true

Size: 1.56 KB

Versions: 60

Compression:

Stored size: 1.56 KB

Contents

### Get the sources
```bash
# using git is preferred
git clone https://github.com/sass/libsass.git
# only needed for sassc and/or testsuite
git clone https://github.com/sass/sassc.git libsass/sassc
git clone https://github.com/sass/sass-spec.git libsass/sass-spec
```

### Decide for static or shared library

`libsass` can be built and linked as a `static` or as a `shared` library. The default is `static`. To change it you can set the `BUILD` environment variable:

```bash
export BUILD="shared"
```

Alternatively you can also define it directly when calling make:

```bash
BUILD="shared" make ...
```

### Compile the library
```bash
make -C libsass -j5
```

### Results can be found in
```bash
$ ls libsass/lib
libsass.a libsass.so
```

### Install onto the system

We recommend to use [autotools to install](build-with-autotools.md) libsass onto the
system, since that brings all the benefits of using libtools as the main install method.
If you still want to install libsass via the makefile, you need to make sure that gnu
`install` utility (or compatible) is installed on your system.
```bash
yum install coreutils # RedHat Linux
emerge -a coreutils # Gentoo Linux
pkgin install coreutils # SmartOS
```

You can set the install location by setting `PREFIX`
```bash
PREFIX="/opt/local" make install
```


### Compling sassc

```bash
# Let build know library location
export SASS_LIBSASS_PATH="`pwd`/libsass"
# Invokes the sassc makefile
make -C libsass -j5 sassc
```

### Run the spec test-suite

```bash
# needs ruby available
# also gem install minitest
make -C libsass -j5 test_build
```

Version data entries

60 entries across 58 versions & 17 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
disco_app-0.18.0 test/dummy/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
disco_app-0.18.2 test/dummy/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
tang-0.2.1 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
tang-0.2.0 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
tang-0.1.0 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
tang-0.0.9 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
enju_library-0.3.8 spec/dummy/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/ext/libsass/docs/build-with-makefiles.md
ilog-0.4.1 node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
ilog-0.4.0 node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
ilog-0.3.3 node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/build-with-makefiles.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/build-with-makefiles.md
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/build-with-makefiles.md