summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile29
1 files changed, 14 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 0d9b2d6..ab8df76 100644
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,26 @@
-all: rankings players
-
-rankings: tables editions minimize
-
-tables:
- bin/build-rankings.sh config/dates.json http
-
+tmpfiles := $(patsubst %.html,%.html.tmp,$(wildcard http/*.html))
rankfiles := $(patsubst %.html,%.html.ed,$(wildcard http/*.html))
-editions: $(rankfiles)
+$(tmpfiles):
+ htmlmin $(patsubst %.tmp,%,$@) $@
+ mv $@ $(patsubst %.tmp,%,$@)
$(rankfiles):
python editions.py $(patsubst %.ed,%,$@)
-tmpfiles := $(patsubst %.html,%.html.tmp,$(wildcard http/*.html))
+all: rankings players
minimize: $(tmpfiles)
-$(tmpfiles):
- htmlmin $(patsubst %.tmp,%,$@) $@
- mv $@ $(patsubst %.tmp,%,$@)
+deploy:
+ sshpass -p `cat config/deploy-pass` rsync -urpP http/ `cat config/deploy-path`
+
+rankings: tables editions
+
+tables:
+ bin/build-rankings.sh config/dates.json http
+
+editions: $(rankfiles)
players:
bin/build-players.sh http
-
-deploy:
- sshpass -p `cat config/deploy-pass` rsync -urpP http/ `cat config/deploy-path`