aboutsummaryrefslogtreecommitdiff
path: root/client-web/makefile
blob: 2623c6ee0ff3deb43f563c63c7b609dc154f8d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
.PHONY: all watch
all: public/assets/bundle.js public/assets/sw.js public/assets/font/include.css
watch:
	deno bundle --no-check --watch source/index.ts public/assets/bundle.js &
	deno bundle --no-check --watch source/sw/worker.ts public/assets/sw.js
public/assets/bundle.js: $(shell find source -type f -name '*.ts')
	deno bundle --no-check --unstable source/index.ts > $@
public/assets/sw.js: $(shell find source/sw -type f -name '*.ts')
	deno bundle --no-check --unstable source/sw/worker.ts > $@
public/assets/font/include.css:
	mkdir -p public/assets/font
	curl 'https://s.metamuffin.org/static/font-ubuntu.tar' | tar -xC public/assets/font