3 # using git is preferred
4 git clone https://github.com/sass/libsass.git
5 # only needed for sassc and/or testsuite
6 git clone https://github.com/sass/sassc.git libsass/sassc
7 git clone https://github.com/sass/sass-spec.git libsass/sass-spec
10 ### Decide for static or shared library
12 `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:
18 Alternatively you can also define it directly when calling make:
21 BUILD="shared" make ...
24 ### Compile the library
29 ### Results can be found in
35 ### Install onto the system
37 We recommend to use [autotools to install](build-with-autotools.md) libsass onto the
38 system, since that brings all the benefits of using libtools as the main install method.
39 If you still want to install libsass via the makefile, you need to make sure that gnu
40 `install` utility (or compatible) is installed on your system.
42 yum install coreutils # RedHat Linux
43 emerge -a coreutils # Gentoo Linux
44 pkgin install coreutils # SmartOS
47 You can set the install location by setting `PREFIX`
49 PREFIX="/opt/local" make install
56 # Let build know library location
57 export SASS_LIBSASS_PATH="`pwd`/libsass"
58 # Invokes the sassc makefile
59 make -C libsass -j5 sassc
62 ### Run the spec test-suite
65 # needs ruby available
66 # also gem install minitest
67 make -C libsass -j5 test_build