summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-07 14:23:19 +0200
committeremkael <emkael@tlen.pl>2017-09-07 14:23:19 +0200
commitac91fdbcb319b7aca5c2b8cc406997e331efbec8 (patch)
tree3757fcee964c69e718851a8db4057460494947af /Makefile
parent7b775200ef44e22d2c5ab0dffce6be5f2ca136fa (diff)
Pre-generated menus for static pages (and group tool pages)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 99f0d04..edf9cb0 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ players:
bin/build-players.sh http
statics:
+ python scripts/generate-static-menu.py config/static.json http http > http/.menu.html
bin/generate-statics.sh config/static.json static http
menus:
@@ -31,7 +32,8 @@ menus:
group-tools:
python scripts/static.py static/group-intro.html static/group-form-loading.html static/group-form.html > http/ranking-grupowy.html
- python scripts/static-menu.py config/static.json http/ranking-grupowy.html http
+ python scripts/generate-static-menu.py config/static.json http http > http/.menu.html
+ python scripts/static-menu.py http/ranking-grupowy.html http/.menu.html
minimize: $(tmpfiles)
@@ -40,6 +42,7 @@ $(tmpfiles):
mv $@ $(patsubst %.tmp,%,$@)
deploy:
+ find http -type f -name .menu.html -delete
bin/deploy.sh
clean: