summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..83728ee
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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