From 5296bc094ef7d800177b64922c2008b1d5480be6 Mon Sep 17 00:00:00 2001 From: Jan Mach <jan.mach@cesnet.cz> Date: Thu, 6 Sep 2018 15:20:17 +0200 Subject: [PATCH] Added make target for building all available project presentations. (Redmine issue: #3387) --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Makefile b/Makefile index dbde3d96..90247ac7 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,8 @@ DIR_LIB_HAWAT = lib/hawat BIN_FILES := $(wildcard bin/mentat-*.py) LIB_FILES := $(shell find $(DIR_LIB) -name '*.py' | grep -v 'test_') +CURRENT_DIR = $(shell pwd) + # # Color code definitions for colored terminal output # https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux @@ -63,6 +65,7 @@ help: @echo " * ${GREEN}docs${NC}: generate local project documentation" @echo " = ${ORANGE}docs-sync${NC}: synchronize documentation from submodules" @echo " = ${ORANGE}docs-sphinx${NC}: generate local project documentation" + @echo " * ${GREEN}presentations${NC}: project presentations" @echo " * ${GREEN}pybabel-patch${NC}: patch babel library" @echo " * ${GREEN}hpybabel-extract${NC}: extract Hawat user interface translations" @echo " * ${GREEN}hpybabel-update${NC}: update Hawat user interface translations" @@ -141,6 +144,23 @@ docs-sphinx: FORCE #------------------------------------------------------------------------------- +presentations: FORCE + @echo "\n${GREEN}*** Generating project presentations ***${NC}\n" + @for presdir in $(DIR_DOC)/presentations/*; do \ + if [ -d $$presdir ]; then \ + echo "────────────────────────────────────────────────────────────────────────────────"; \ + echo " $$presdir"; \ + echo "────────────────────────────────────────────────────────────────────────────────"; \ + cd $$presdir; \ + make; \ + cd $(CURRENT_DIR); \ + echo; \ + fi; \ + done + +#------------------------------------------------------------------------------- + + # # This patch solves following issue: https://github.com/python-babel/flask-babel/issues/43 # -- GitLab