1
0
Fork 0
mirror of https://github.com/Luzifer/past3.git synced 2024-11-10 00:40:00 +00:00
past3/Makefile

17 lines
341 B
Makefile
Raw Permalink Normal View History

2017-01-14 20:07:48 +00:00
default: generate
generate: script index-page
script: public
docker run --rm -ti -v $(CURDIR):$(CURDIR) -w $(CURDIR) node:alpine \
sh -exc "npm ci && npx babel -d public app.js && chown -R $(shell id -u) public && rm -rf node_modules"
2017-01-14 20:07:48 +00:00
index-page: public
./generate.py > public/index.html
public:
mkdir public
clean:
rm -rf public