-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (27 loc) · 921 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
41
42
PREFIX = _site
install: build
mkdir -p $(PREFIX)
cp src/index.html $(PREFIX)/index.html
cp node_modules/material-design-icons/iconfont/MaterialIcons-Regular.* $(PREFIX)/
mkdir -p $(PREFIX)/fonts
cp -r node_modules/roboto-fontface/fonts/roboto $(PREFIX)/fonts/
rsync -r imgs $(PREFIX)
cp src/elm.js $(PREFIX)/elm.js
cp src/index.css $(PREFIX)/index.css
cp src/index.js $(PREFIX)/index.js
build: src/elm.js src/index.css src/index.js
src/index.js: src/app.js src/elm.js
webpack --mode=development
src/elm.js: src/*.elm src/**/*.elm
elm make src/Main.elm --output src/elm.js
src/index.css: src/*.scss node_modules
sassc -I node_modules src/index.scss | ./node_modules/.bin/postcss --use autoprefixer > src/index.css
node_modules:
npm i
clean:
rm -rf elm-stuff/build-artifacts
rm -rf $(PREFIX)
rm -f src/index.css src/elm.js src/index.js
distclean: clean
rm -rf elm-stuff
rm -rf node_modules