summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-04 20:56:15 +0200
committerFlorian Dold <florian@dold.me>2021-05-04 20:56:15 +0200
commit56a2b320b55319de9f8e6239a1ead91d9fb655c0 (patch)
treecb76e4f523184d784138a4ccc6bf8830d85d6ba9 /Makefile
parent8231924a24f9ee2594744e26670205eeabe4d0d6 (diff)
downloadwww-56a2b320b55319de9f8e6239a1ead91d9fb655c0.tar.gz
www-56a2b320b55319de9f8e6239a1ead91d9fb655c0.tar.bz2
www-56a2b320b55319de9f8e6239a1ead91d9fb655c0.zip
pass base URL to site generator
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 13803b40..034d0db5 100644
--- a/Makefile
+++ b/Makefile
@@ -61,13 +61,16 @@ locale: locale-update locale-compile
# Run the jinja2 templating engine to expand templates to HTML
# incorporating translations.
template: locale-compile
- $(python) ./make_site.py
+
+ env BASEURL=$(opt_baseurl) ./make_site.py
.PHONY: run
run: all
$(browser) http://0.0.0.0:8000/rendered/en &
$(python) -m http.server
+variant = $(opt_variant)
+
ifndef variant
$(error variant is not set)
endif