summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e7d450a..025e1cc3 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ include config.mk
# All: build HTML pages in all languages and compile the
# TypeScript logic in web-common.
all: locale template
- cd web-common && tsc
+ cd web-common && $(TSC)
# Extract translateable strings from jinja2 templates.
locale/messages.pot: *.j2 common/*.j2 common/*.j2.inc
@@ -47,3 +47,14 @@ locale: locale-update locale-compile
# incorporating translations.
template: locale-compile
$(PYTHON) ./template.py
+
+run: all
+ @[ "$(BROWSER)" ] || ( echo "You need to export the environment variable 'BROWSER' to run this."; exit 1 )
+ $(RUN_BROWSER) http://0.0.0.0:8000 &
+ # cd rendered && $(PYTHON) -m http.server
+ $(PYTHON) -m http.server
+
+clean:
+ rm -rf __pycache__
+ rm -rf en/ de/ fr/ it/ es/ ru/
+ rm -rf rendered/