summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8283fa9671ff91281b89b3ca3f75137433dff3c8 (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
tmpfiles := $(patsubst %.html,%.html.tmp,$(wildcard http/*.html))
rankfiles := $(patsubst %.html,%.html.ed,$(wildcard http/*.html))

$(tmpfiles):
	python -m htmlmin.command $(patsubst %.tmp,%,$@) $@
	mv $@ $(patsubst %.tmp,%,$@)

$(rankfiles):
	python editions.py $(patsubst %.ed,%,$@)

all: rankings players

minimize: $(tmpfiles)

deploy:
	bin/deploy.sh

rankings: tables editions

tables:
	bin/build-rankings.sh config/dates.json http

editions: $(rankfiles)

players:
	bin/build-players.sh http