summaryrefslogtreecommitdiff
path: root/Makefile
blob: c3b51b0ce0deaaad2e79aea8dd9c71ebcf3f98af (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
28
29
30
all: rankings players

targetfiles := $(shell bin/target-ranking-files.sh config/dates.json)
tmpfiles := $(patsubst %.html,http/%.html.tmp,$(targetfiles))
rankfiles := $(patsubst %.html,http/%.html.ed,$(targetfiles))

rankings: tables editions

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

editions: tables $(rankfiles)

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

players:
	bin/build-players.sh http

minimize: $(tmpfiles)

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

deploy:
	bin/deploy.sh

clean:
	find http -type f -name \*.html -delete