From f0e062abcd1d5a11b3e998711d4115ce9607c111 Mon Sep 17 00:00:00 2001 From: Bastien Dumont Date: Wed, 3 Feb 2021 01:25:23 +0100 Subject: [PATCH] =?UTF-8?q?make=20doc=20prend=20compile=20la=20valeur=20de?= =?UTF-8?q?=20JOURNAL=20si=20elle=20est=20renseign=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Utilitaires/Makefile | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Utilitaires/Makefile b/Utilitaires/Makefile index e4b305b..d8cef1e 100644 --- a/Utilitaires/Makefile +++ b/Utilitaires/Makefile @@ -6,13 +6,22 @@ VALIDATION_FILE_SUFFIX = _CSL-Validation.html OUTPUT_FILE_SUFFIX = _CSL-Tests.html CSL_FILE_SUFFIX = .csl JSON_BIBLIO_UTILITIES_DIR = /home/bdumont/Logiciels/Pandoc-utilities/FileModifiers-Pandoc -VALIDATION_PROV_FILE = $(PROV_PREFIX)$(JOURNAL)$(VALIDATION_FILE_SUFFIX) -CSL_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)$(CSL_FILE_SUFFIX) -VALIDATION_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)$(VALIDATION_FILE_SUFFIX) -OUTPUT_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)$(OUTPUT_FILE_SUFFIX) -FILTERS_FILE_FIRST = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)_filters-first.txt -FILTERS_LIST_FIRST != ./get-filters.sh $(FILTERS_FILE_FIRST) -FILTERS_FILE_LAST = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)_filters-last.txt + +ifdef JOURNAL + DOC_DIR = $(STYLESHEETS_DIR)/$(JOURNAL) + DOC_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/GUIDE_$(JOURNAL) + VALIDATION_PROV_FILE = $(PROV_PREFIX)$(JOURNAL)$(VALIDATION_FILE_SUFFIX) + CSL_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(CSL_FILE_SUFFIX) + VALIDATION_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(VALIDATION_FILE_SUFFIX) + OUTPUT_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(OUTPUT_FILE_SUFFIX) + FILTERS_FILE_FIRST = $(THIS_STYLE_DIR)/$(JOURNAL)_filters-first.txt + FILTERS_LIST_FIRST != ./get-filters.sh $(FILTERS_FILE_FIRST) + FILTERS_FILE_LAST = $(THIS_STYLE_DIR)/$(JOURNAL)_filters-last.txt +else + DOC_DIR = ../Documentation + DOC_FILE = $(DOC_DIR)/GUIDE_CSL-Clio +endif + FILTERS_LIST_LAST != ./get-filters.sh $(FILTERS_FILE_LAST) PANDOC_OPTIONS = -s \ $(FILTERS_LIST_FIRST) \ @@ -59,3 +68,6 @@ install: $(VALIDATION_PROV_FILE) clean: rm $(STYLESHEETS_DIR)/*/*$(OUTPUT_FILE_SUFFIX) + +doc: + pandoc -s -o $(DOC_FILE).pdf --resource-path=.:$(DOC_DIR) --pdf-engine=lualatex --template=TEMPLATE_Guide-CSL-Clio.latex --filter pandoc-crossref $(DOC_FILE).md