1
0
Fork 0
mirror of https://github.com/Luzifer/past3.git synced 2024-11-09 16:30:01 +00:00
past3/Makefile
Knut Ahlers 2ee228f721
Port application to pure Javascript
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-24 14:13:36 +02:00

16 lines
341 B
Makefile

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"
index-page: public
./generate.py > public/index.html
public:
mkdir public
clean:
rm -rf public