summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0d9b2d646b5f247e373e18e7ef38084dc2de6a05 (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
27
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

deploy:
	sshpass -p `cat config/deploy-pass` rsync -urpP http/ `cat config/deploy-path`