diff options
Diffstat (limited to 'www/Makefile')
-rw-r--r-- | www/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile new file mode 100644 index 0000000..a9f86e7 --- /dev/null +++ b/www/Makefile @@ -0,0 +1,28 @@ +DEPLOY_TARGET="/var/www/imok.ngha.ro/" + +PATH := node_modules/.bin:$(PATH) +SHELL := /bin/bash + +css_out := index.css +js_out := index.js +libs := lib/app.js +styles := styles/app.scss + +.PHONY: all clean deploy + +all: $(app_bundle) + +%.js: + babel $< --out-file $@ + +%.css: + sass --style compressed $< $@ + +index.css: $(styles) +index.js: $(libs) +build: index.css index.js + +deploy: index.* + rsync -vr $^ $(DEPLOY_TARGET) + +all: build deploy |