summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3b891920..f73428bd 100644
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,24 @@
include build-system/config.mk
-# All: build HTML pages in all languages and compile the
+# All: build HTML pages in all languages.
.PHONY: all
-all:
- ./inc/update-messages
+all: translate site
+
+.PHONY: site
+site:
env "BASEURL=$(opt_baseurl)" ./inc/build-site
+ @echo "Build site [DONE]"
+
+.PHONY: translate
+translate:
+ ./inc/update-messages
+ @echo "Translate site [DONE]"
.PHONY: run
run: all
- $(browser) http://0.0.0.0:8000/rendered/en &
- $(python) -m http.server
+ $(browser) http://0.0.0.0:8000/en &
+ $(python) -m http.server --directory rendered/
variant = $(opt_variant)
@@ -27,6 +35,7 @@ install: all
.PHONY: clean
clean:
+ $(find) . -iname '*~' -exec $(rm) {} -rf \;
$(rm) -rf __pycache__ *.pyc *~ \.*~ \#*\#
$(rm) -rf rendered/