summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-03 12:20:15 +0000
committerng0 <ng0@n0.is>2019-03-03 12:20:15 +0000
commitf2703706a944c9669ef8ebd46a7aa8094a04389c (patch)
treecc764d223d3829c4654486ebdec141a1a4b3f41f /Makefile
parent02c846bd7ff7e91a43be6f6f9dea757a3669d7a0 (diff)
downloadwww-f2703706a944c9669ef8ebd46a7aa8094a04389c.tar.gz
www-f2703706a944c9669ef8ebd46a7aa8094a04389c.tar.bz2
www-f2703706a944c9669ef8ebd46a7aa8094a04389c.zip
Makefile: Add show-help, git submodule rules.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 025e1cc..dea7171 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,19 @@
include config.mk
+.SILENT: show-help
+
+show-help:
+ printf "all:\t\t\tBuild the website\n"
+ printf "locale/messages.pot:\tExtract translateable strings from jinja2 templates.\n"
+ printf "locale-update:\t\tUpdate translation files with new strings.\n"
+ printf "locale-compile:\t\tCompile translation files for use.\n"
+ printf "locale:\t\t\tProcess everything related to gettext translations.\n"
+ printf "template:\t\texpand jinja2 templates to html.\n"
+ printf "run:\t\t\tspawn python webserver and open the current directory.\n"
+ printf "clean:\t\t\tclean.\n"
+ printf "submodules/init:\tinit git submodules\n"
+ printf "submodules/update:\tupdate git submodules\n"
# All: build HTML pages in all languages and compile the
# TypeScript logic in web-common.
@@ -58,3 +71,9 @@ clean:
rm -rf __pycache__
rm -rf en/ de/ fr/ it/ es/ ru/
rm -rf rendered/
+
+submodules/init:
+ git submodule update --init --recursive
+
+submodules/update:
+ git submodule update --recursive --remote