summaryrefslogtreecommitdiff
path: root/Makefile
blob: 83728eef7fbf159fc829bfb286db710e14ca466f (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
all: rankings players

rankings: tables editions minimize

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

rankfiles := $(patsubst %.html,%.html.ed,$(wildcard http/*.html))

editions: $(rankfiles)

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

tmpfiles := $(patsubst %.html,%.html.tmp,$(wildcard http/*.html))

minimize: $(tmpfiles)

$(tmpfiles):
	htmlmin $(patsubst %.tmp,%,$@) $@
	mv $@ $(patsubst %.tmp,%,$@)

players:
	bin/build-players.sh http