From 8905ba09f9132370c34220ec48bf4b4a5de97106 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 7 Jun 2017 22:45:28 +0200 Subject: Proper build mechanism --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3