sitedarts/Makefile

27 lines
524 B
Makefile

# -*-makefile-gmake-*-
.PHONY: test list style ntest
all: es5 es5/sitedarts.js
es5:
mkdir -p es5
htdocs:
mkdir -p htdocs
es5/sitedarts.js: es5 node_modules/babel-cli es6/sitedarts.js
./node_modules/babel-cli/bin/babel.js -o es5/sitedarts.js es6/sitedarts.js
node_modules/http-server node_modules/babel-cli:
npm install
serve: node_modules/http-server es5/sitedarts.js htdocs
cp -R examples/* htdocs/
cp -R es5 htdocs/
./node_modules/http-server/bin/http-server htdocs/
clean:
rm -fr es5
rm -fr node_modules