forked from bensmithett/style
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 640 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BIN=node_modules/.bin
AUTOPREFIXER_BROWSERS="> 1%, last 2 versions, Firefox ESR, Explorer 9"
# See https://gist.github.com/toolmantim/6200029#file-makefile-L67-L71
.PHONY: all watch sass autoprefixer
all: sass autoprefixer
@echo "Done!"
watch:
@$(BIN)/wach -o "stylesheets/**/*" make all
sass: stylesheets/*.sass
@echo "Compiling Sass..."
@sass -r sass-css-importer \
-r sass-globbing \
-r susy \
stylesheets/application.sass:css/application.css \
stylesheets/application-lt-ie9.sass:css/application-lt-ie9.css
autoprefixer: css/**
@echo "Autoprefixing..."
@$(BIN)/autoprefixer css/** -b $(AUTOPREFIXER_BROWSERS)