| 123456789101112131415161718192021222324 |
- # Title
- # Auto-Documenting Section. Displays a target list with `##` descriptions.
- help:
- @grep -E '^[a-zA-Z_-]+:.*## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "%-15s %s\n", $$1, $$2}'
- .PHONY: help dist
- dist: ## Create a distribution for live usage
- @mkdir -p dist/{css,js,tags}
- @echo "combining css"
- @cat css/vendor/* > dist/css/app.css
- @cat css/style.css >> dist/css/app.css
- @echo "combining javascript"
- @cat js/vendor/* > dist/js/app.js
- @cat js/pgsh.js >> dist/js/app.js
- @echo "copying riot tags"
- @cp tags/*.tag dist/tags/
- @echo "adjusting index.html"
- @sed "/$(JS_TAGS)/D" index.html | sed "s|$(APPJS_PH)|$(APPJS_TAG)|" > dist/index.html
- @echo "all done!"
- JS_TAGS = <script.*type='text\/javascript'
- APPJS_PH = <!-- appjsplaceholder -->
- APPJS_TAG = <script type='text/javascript' src='js/app.js'><\/script>
|