forked from aforemny/elm-mdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 901 Bytes
/
Makefile
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
40
ELM=elm make
PAGES=../elm-mdc-gh-pages
all: build-demo
build-demo: material-components-web.css elm-mdc.js
mkdir -p build
rsync -r demo/images build
cp demo/page.html build/index.html
cp material-components-web.css build/
cp demo/styles/main.css build/main.css
cp elm-mdc.js build/
(cd demo; $(ELM) --optimize Demo.elm --output ../build/demo.js)
node_modules:
npm i
material-components-web.css: node_modules
cp node_modules/material-components-web/dist/material-components-web.css .
elm-mdc.js: node_modules src/elm-mdc.js webpack.config.js
npm run build
docs:
$(ELM) --docs=docs.json
pages: build-demo
rsync -r build/ $(PAGES)
(cd $(PAGES); git commit -am "Update."; git push origin gh-pages)
clean:
rm -rf build
rm -rf elm-stuff demo/elm-stuff
distclean:
rm -rf build
rm -rf elm-stuff demo/elm-stuff
rm -rf node_modules
rm -f material-components-web.css
rm -f elm-mdc.js