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
12 In order to run autotools you need a few tools installed on your system.
14 yum install automake libtool # RedHat Linux
15 emerge -a automake libtool # Gentoo Linux
16 pkgin install automake libtool # SmartOS
20 ### Create configure script
23 autoreconf --force --install
27 ### Create custom makefiles
42 ### Install the library
43 The library will be installed to the location given as `prefix` to `configure`. This is standard behavior for autotools and not `libsass` specific.
45 make -C libsass -j5 install
49 The `configure` script is created by autotools. To get an overview of available options you can call `./configure --help`. When you execute this script, it will create specific makefiles, which you then use via the regular make command.
51 There are some `libsass` specific options:
55 --enable-tests enable testing the build
56 --enable-coverage enable coverage report for test suite
57 --enable-shared build shared libraries [default=yes]
58 --enable-static build static libraries [default=yes]
61 --with-sassc-dir=<dir> specify directory of sassc sources for
62 testing (default: sassc)
63 --with-sass-spec-dir=<dir> specify directory of sass-spec for testing
67 ### Build sassc and run spec test-suite
71 autoreconf --force --install