diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -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` |