blob: a9f86e7d8be7487204f883b08226123f9977ef7a (
plain)
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
|
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
|