Skip to content

Commit 4a2cdbe

Browse files
committed
Split up styles make target to make it possible to build stuff seperately.
1 parent f682048 commit 4a2cdbe

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/styles/Makefile.am

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,29 @@ SASSFLAGS = --style=compressed --no-cache --sourcemap=none
2323
AUTOPREFIXER_BROWSER_SUPPORT := "> 1%, last 2 versions, Firefox ESR, Opera 12.1"
2424
STATIC = ../../static
2525

26-
styles:
26+
pre:
2727
@if [ "$(SASS)" = "" ]; then echo "Command 'sass' not found, required when building styles"; exit 1; fi
28-
@if [ "$(AUTOPREFIXER)" = "" ]; then echo "Command 'autoprefixer' not found, required when building styles"; exit 1; fi
2928
@if [ "$(NODEJS_SUPPORT_STYLES)" = "no" ]; then echo "Your version of node.js does not support building styles"; exit 1; fi
3029
@if [ "$(SASS_SUPPORT_STYLES)" = "no" ]; then echo "Your version of sass does not support building styles"; exit 1; fi
3130
$(MKDIR_P) $(STATIC)/css
31+
32+
styles: bootstrap.min.css font-awesome.min.css csp.min.css main.min.css
33+
34+
main.min.css: pre
35+
@if [ "$(AUTOPREFIXER)" = "" ]; then echo "Command 'autoprefixer' not found, required when building main.css styles"; exit 1; fi
3236
$(SASS) --compass --scss $(SASSFLAGS) \
3337
$(CURDIR)/main.scss:$(STATIC)/css/main.min.css
3438
$(AUTOPREFIXER) --browsers $(AUTOPREFIXER_BROWSER_SUPPORT) $(STATIC)/css/main.min.css
39+
40+
bootstrap.min.css: pre
3541
$(SASS) --compass --scss $(SASSFLAGS) \
3642
$(CURDIR)/bootstrap.scss:$(STATIC)/css/bootstrap.min.css
43+
44+
font-awesome.min.css: pre
3745
$(SASS) --compass --scss $(SASSFLAGS) \
3846
$(CURDIR)/font-awesome.scss:$(STATIC)/css/font-awesome.min.css
47+
48+
csp.min.css: pre
3949
$(SASS) --compass --scss $(SASSFLAGS) \
4050
$(CURDIR)/csp.scss:$(STATIC)/css/csp.min.css
4151

0 commit comments

Comments
 (0)