2016-04-13 06:17:25 +00:00
|
|
|
ELM=elm-make --yes
|
2016-04-12 21:23:50 +00:00
|
|
|
PAGES=../elm-mdl-gh-pages
|
2016-03-15 16:57:39 +00:00
|
|
|
|
2016-04-06 18:16:54 +00:00
|
|
|
demo:
|
2016-04-13 06:17:25 +00:00
|
|
|
(cd demo; $(ELM) Demo.elm --warn --output ../elm.js)
|
|
|
|
|
|
|
|
comp:
|
|
|
|
$(ELM) examples/Component.elm --warn --output elm.js
|
|
|
|
|
|
|
|
comp-tea:
|
|
|
|
$(ELM) examples/Component.elm --warn --output elm.js
|
2016-03-17 12:31:43 +00:00
|
|
|
|
2016-04-12 21:03:13 +00:00
|
|
|
docs:
|
2016-04-13 06:17:25 +00:00
|
|
|
$(ELM) --docs=docs.json
|
2016-04-12 13:09:12 +00:00
|
|
|
|
2016-04-13 06:17:25 +00:00
|
|
|
test: docs comp comp-tea docs
|
|
|
|
|
2016-03-21 11:24:00 +00:00
|
|
|
wip-pages :
|
2016-04-12 21:23:50 +00:00
|
|
|
(cd demo; elm-make Demo.elm --output ../$(PAGES)/wip.js)
|
2016-03-21 11:24:00 +00:00
|
|
|
(cd $(PAGES); git commit -am "Update."; git push origin gh-pages)
|
|
|
|
|
2016-03-15 16:57:39 +00:00
|
|
|
pages :
|
2016-04-12 21:23:50 +00:00
|
|
|
(cd demo; elm-make Demo.elm --output ../$(PAGES)/elm.js)
|
2016-03-15 16:57:39 +00:00
|
|
|
(cd $(PAGES); git commit -am "Update."; git push origin gh-pages)
|
|
|
|
|
2016-03-30 07:19:18 +00:00
|
|
|
cleanish :
|
2016-04-12 17:06:07 +00:00
|
|
|
rm -f elm.js index.html docs.json
|
2016-03-17 12:31:43 +00:00
|
|
|
|
2016-04-12 17:06:07 +00:00
|
|
|
clean : cleanish
|
2016-04-11 15:00:49 +00:00
|
|
|
rm -rf elm-stuff/build-artifacts demo/elm-stuff/build-artifacts
|
2016-03-19 22:47:21 +00:00
|
|
|
|
2016-03-17 12:31:43 +00:00
|
|
|
distclean : clean
|
|
|
|
rm -rf elm-stuff
|
|
|
|
|
|
|
|
|
2016-04-13 06:17:25 +00:00
|
|
|
.PHONY : pages elm.js clean cleanish distclean demo docs test
|