From 4a2cdbe46bda04b27588fbdc5eb7cc8c67af2f19 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Fri, 1 May 2015 12:10:37 +0200 Subject: [PATCH] Split up styles make target to make it possible to build stuff seperately. --- src/styles/Makefile.am | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/styles/Makefile.am b/src/styles/Makefile.am index 9e0b73c5..d47a9be7 100644 --- a/src/styles/Makefile.am +++ b/src/styles/Makefile.am @@ -23,19 +23,29 @@ SASSFLAGS = --style=compressed --no-cache --sourcemap=none AUTOPREFIXER_BROWSER_SUPPORT := "> 1%, last 2 versions, Firefox ESR, Opera 12.1" STATIC = ../../static -styles: +pre: @if [ "$(SASS)" = "" ]; then echo "Command 'sass' not found, required when building styles"; exit 1; fi - @if [ "$(AUTOPREFIXER)" = "" ]; then echo "Command 'autoprefixer' not found, required when building styles"; exit 1; fi @if [ "$(NODEJS_SUPPORT_STYLES)" = "no" ]; then echo "Your version of node.js does not support building styles"; exit 1; fi @if [ "$(SASS_SUPPORT_STYLES)" = "no" ]; then echo "Your version of sass does not support building styles"; exit 1; fi $(MKDIR_P) $(STATIC)/css + +styles: bootstrap.min.css font-awesome.min.css csp.min.css main.min.css + +main.min.css: pre + @if [ "$(AUTOPREFIXER)" = "" ]; then echo "Command 'autoprefixer' not found, required when building main.css styles"; exit 1; fi $(SASS) --compass --scss $(SASSFLAGS) \ $(CURDIR)/main.scss:$(STATIC)/css/main.min.css $(AUTOPREFIXER) --browsers $(AUTOPREFIXER_BROWSER_SUPPORT) $(STATIC)/css/main.min.css + +bootstrap.min.css: pre $(SASS) --compass --scss $(SASSFLAGS) \ $(CURDIR)/bootstrap.scss:$(STATIC)/css/bootstrap.min.css + +font-awesome.min.css: pre $(SASS) --compass --scss $(SASSFLAGS) \ $(CURDIR)/font-awesome.scss:$(STATIC)/css/font-awesome.min.css + +csp.min.css: pre $(SASS) --compass --scss $(SASSFLAGS) \ $(CURDIR)/csp.scss:$(STATIC)/css/csp.min.css