summaryrefslogtreecommitdiff
path: root/Makefile
blob: d86fb89b1a561484c462913546f90e2ba4018829 (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:
	sshpass -p `cat config/deploy-pass` rsync -urpP http/ `cat config/deploy-path`

rankings: tables editions

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

editions: $(rankfiles)

players:
	bin/build-players.sh http