From 3136119d206041424c309ff05a602e05e020e1a6 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 30 Jun 2014 18:23:21 +0200 Subject: [PATCH] Check for requirements when executing `make styleshint`. --- src/styles/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/styles/Makefile.am b/src/styles/Makefile.am index bf115db3..07ba53e3 100644 --- a/src/styles/Makefile.am +++ b/src/styles/Makefile.am @@ -38,4 +38,6 @@ styles: $(CURDIR)/font-awesome.scss:$(STATIC)/css/font-awesome.min.css styleshint: + @if [ "$(SASS)" = "" ]; then echo "Command 'sass' not found, required when checking styles"; exit 1; fi + @if [ "$(SASS_SUPPORT_STYLES)" = "no" ]; then echo "Your version of sass does not support checking styles"; exit 1; fi $(FIND) ./ -maxdepth 1 -name "*.scss" -print0 | xargs -0 -n1 $(SASS) --compass --scss $(SASSFLAGS) -c