From f2703706a944c9669ef8ebd46a7aa8094a04389c Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 3 Mar 2019 12:20:15 +0000 Subject: Makefile: Add show-help, git submodule rules. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 025e1cc3..dea71710 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 -- cgit v1.2.3