Browse Source

Split up styles make target to make it possible to build stuff seperately.

pull/153/head
Simon Eisenmann 10 years ago
parent
commit
4a2cdbe46b
  1. 14
      src/styles/Makefile.am

14
src/styles/Makefile.am

@ -23,19 +23,29 @@ SASSFLAGS = --style=compressed --no-cache --sourcemap=none @@ -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

Loading…
Cancel
Save