From 7870e88f0653e6ac93c1f2e123aa9826778be376 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 25 Feb 2019 22:43:51 +0100 Subject: make: implemented optional sass support using libsass pending: - tests for sass support - build tests on ci with and without libsass - documentation - support sass options in blogcfile --- Makefile.am | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 040f291..5fae160 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,6 +60,7 @@ noinst_HEADERS = \ src/blogc-make/httpd.h \ src/blogc-make/reloader.h \ src/blogc-make/rules.h \ + src/blogc-make/sass.h \ src/blogc-make/settings.h \ src/blogc-make/utils.h \ src/blogc-runserver/httpd.h \ @@ -235,6 +236,16 @@ blogc_make_LDADD = \ libblogc_make.la \ libblogc_common.la \ $(NULL) + +if USE_LIBSASS +blogc_make_CFLAGS += \ + $(LIBSASS_CFLAGS) \ + $(NULL) + +blogc_make_LDADD += \ + $(LIBSASS_LIBS) \ + $(NULL) +endif endif if BUILD_MAKE_LIB @@ -259,6 +270,20 @@ libblogc_make_la_LIBADD = \ $(PTHREAD_LIBS) \ libblogc_common.la \ $(NULL) + +if USE_LIBSASS +libblogc_make_la_SOURCES += \ + src/blogc-make/sass.c \ + $(NULL) + +libblogc_make_la_CFLAGS += \ + $(LIBSASS_CFLAGS) \ + $(NULL) + +libblogc_make_la_LIBADD += \ + $(LIBSASS_LIBS) \ + $(NULL) +endif endif -- cgit v1.2.3-18-g5258