open-consul/ui/Makefile

21 lines
513 B
Makefile
Raw Normal View History

2014-04-21 20:01:53 +00:00
server:
python -m SimpleHTTPServer
watch:
2014-04-21 20:07:14 +00:00
sass styles:static --watch
2014-04-21 20:01:53 +00:00
2014-05-01 15:21:55 +00:00
dist:
2014-05-01 15:39:56 +00:00
@echo clean dist
@rm -rf dist/index.html
@rm -rf dist/static
2014-05-01 15:21:55 +00:00
@echo "compile styles/*.scss"
@sass styles/base.scss static/base.css
@ruby scripts/compile.rb
2014-05-01 15:39:56 +00:00
cp -R ./static dist/static/
2014-05-01 15:31:56 +00:00
cp index.html dist/index.html
2014-05-01 19:43:16 +00:00
sed -E -e "/ASSETS/,/\/ASSETS/ d" -ibak dist/index.html
2014-05-01 19:44:18 +00:00
sed -E -e "s#<\/body>#<script src=\"static/application.min.js\"></script></body>#" -ibak dist/index.html
2014-05-01 19:45:15 +00:00
rm dist/index.htmlbak
2014-04-21 20:01:53 +00:00
2014-05-01 15:21:55 +00:00
.PHONY: server watch dist