aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/rules.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-make/rules.c')
-rw-r--r--src/blogc-make/rules.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/blogc-make/rules.c b/src/blogc-make/rules.c
index 06223c0..41e363d 100644
--- a/src/blogc-make/rules.c
+++ b/src/blogc-make/rules.c
@@ -6,6 +6,10 @@
* See the file LICENSE.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
@@ -22,6 +26,10 @@
#include "utils.h"
#include "rules.h"
+#ifdef USE_LIBSASS
+#include "./sass.h"
+#endif
+
static void
posts_ordering(bm_ctx_t *ctx, bc_trie_t *variables, const char *variable)
@@ -850,6 +858,15 @@ const bm_rule_t rules[] = {
.exec_func = copy_exec,
.generate_files = true,
},
+#ifdef USE_LIBSASS
+ {
+ .name = "sass",
+ .help = "build CSS stylesheets from Sass (.scss) sources",
+ .outputlist_func = bm_sass_outputlist,
+ .exec_func = bm_sass_exec,
+ .generate_files = true,
+ },
+#endif
{
.name = "clean",
.help = "clean built files and empty directories in output directory",