summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4565ad36303edafa83db352acd303bb8a5bc8647 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
BUILD_DIR=_build
CSS_DIR=$(BUILD_DIR)/assets/css
IMG_DIR=$(BUILD_DIR)/assets/img

SCSS=scss/fsfi.scss
CSS=$(CSS_DIR)/fsfi.css

site: $(BUILD_DIR) css img html
.PHONY: site


html: $(BUILD_DIR)
	rsync -a html/ $(BUILD_DIR)/
.PHONY: html

img: $(BUILD_DIR)
	rsync -a img/ $(IMG_DIR)/
.PHONY: img

css: $(CSS)
.PHONY: css

$(CSS): $(SCSS) $(BUILD_DIR)
	mkdir -p `dirname $(CSS)`
	sass --style expanded $(SCSS) $(CSS)

$(BUILD_DIR):
	mkdir -p $(BUILD_DIR)

clean: clean-build clean-css
.PHONY: clean

clean-build:
	rm -rf $(BUILD_DIR)
.PHONY: clean-build

clean-css:
	rm -rf $(CSS)
.PHONY: clean-css