-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.mk
38 lines (29 loc) · 1.01 KB
/
main.mk
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
SCSS_MIDORI_FILES := $(call rwildcard, tests, *.midori.scss)
SCSS_MIDORI_DEP_FILES := $(SCSS_MIDORI_FILES:.midori.scss=_dep.scss)
webpack:
$(SILENT) ./node_modules/.bin/webpack
$(SILENT) ./chrome.sh reload
.PHONY: webpack
t: clean tests/css/grid.css $(SCSS_MIDORI_DEP_FILES)
$(SILENT) ./chrome.sh reload
.PHONY: t
tests/css/grid.css: $(SCSS_SRC)
$(SILENT) scss $(SCSS_MODULES) tests/css/grid.scss tests/css/grid.css
test: clean $(TEST_SCSS_DIST)
$(SILENT) ./chrome.sh reload
.PHONY: test
tests/css/_test_dep.scss: tests/css/_test.midori.scss
$(SILENT) ./src/index.js -f tests/css/_test.midori.scss > tests/css/_test_dep.scss
test-js:
$(SILENT) ./src/index.js -o txt -f tests/css/_test.midori.scss
.PHONY: test-js
clean:
$(SILENT) $(RM) .sass-cache/
$(SILENT) $(RM) $(SCSS_MIDORI_DEP_FILES)
$(SILENT) $(RM) $(TEST_SCSS_DIST)
.PHONY: clean
$(TEST_SCSS_DIST): $(SCSS_SRC) tests/css/_test_dep.scss
$(SILENT) scss $(SCSS_OPTIONS) $(TEST_SCSS) $(TEST_SCSS_DIST)
doc: Readme.md
$(SILENT) $(CAT) Readme.md
.PHONY: doc