index.html: reindent the code, don't treat head and body in a special way
[experiments/scss-responsive-toggle-menu.git] / Makefile
1 SCSS_SOURCE_DIR := scss
2 SCSS_SOURCES    := $(wildcard $(SCSS_SOURCE_DIR)/[^_]*.scss)
3
4 CSS_DEST_DIR := css
5 CSS_COMPILED := $(SCSS_SOURCES:$(SCSS_SOURCE_DIR)/%.scss=%.css)
6
7 SCSS_OUTPUT_TYPE := expanded
8
9 SCSS_BIN := sassc
10 SCSS_FLAGS := -t $(SCSS_OUTPUT_TYPE)
11
12 update: $(CSS_COMPILED)
13
14 clean:
15         rm -rf $(CSS_DEST_DIR) .sass-cache
16
17 %.css: $(SCSS_SOURCE_DIR)/%.scss
18         @[ -d $(CSS_DEST_DIR) ] || mkdir -p $(CSS_DEST_DIR)
19         $(SCSS_BIN) $(SCSS_FLAGS) $< $(CSS_DEST_DIR)/$@