summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-06-16 00:25:49 +0200
committeremkael <emkael@tlen.pl>2017-06-16 00:25:49 +0200
commitc6f7e0b955693be3986efc86c9c0e17b3e7b0fc1 (patch)
treefe4ed327fb1c4191dadccbb63dea4f5e5a9ece05 /Makefile
parentf082f7c25fba7d7064a2bbda0dd9cc1d0babfb35 (diff)
`all` target back as default target for the Makefile
`editions` and `minimize` targets can't be resolved as file wildcards, because with they're resolved once and may not exist in a clean environment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 16 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 8283fa9..35466c5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,27 @@
-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:
- bin/deploy.sh
+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: $(rankfiles)
+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