make doc prend compile la valeur de JOURNAL si elle est renseignée
This commit is contained in:
parent
fd73e7b259
commit
f0e062abcd
|
@ -6,13 +6,22 @@ VALIDATION_FILE_SUFFIX = _CSL-Validation.html
|
||||||
OUTPUT_FILE_SUFFIX = _CSL-Tests.html
|
OUTPUT_FILE_SUFFIX = _CSL-Tests.html
|
||||||
CSL_FILE_SUFFIX = .csl
|
CSL_FILE_SUFFIX = .csl
|
||||||
JSON_BIBLIO_UTILITIES_DIR = /home/bdumont/Logiciels/Pandoc-utilities/FileModifiers-Pandoc
|
JSON_BIBLIO_UTILITIES_DIR = /home/bdumont/Logiciels/Pandoc-utilities/FileModifiers-Pandoc
|
||||||
|
|
||||||
|
ifdef JOURNAL
|
||||||
|
DOC_DIR = $(STYLESHEETS_DIR)/$(JOURNAL)
|
||||||
|
DOC_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/GUIDE_$(JOURNAL)
|
||||||
VALIDATION_PROV_FILE = $(PROV_PREFIX)$(JOURNAL)$(VALIDATION_FILE_SUFFIX)
|
VALIDATION_PROV_FILE = $(PROV_PREFIX)$(JOURNAL)$(VALIDATION_FILE_SUFFIX)
|
||||||
CSL_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)$(CSL_FILE_SUFFIX)
|
CSL_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(CSL_FILE_SUFFIX)
|
||||||
VALIDATION_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)$(VALIDATION_FILE_SUFFIX)
|
VALIDATION_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(VALIDATION_FILE_SUFFIX)
|
||||||
OUTPUT_FILE = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)$(OUTPUT_FILE_SUFFIX)
|
OUTPUT_FILE = $(THIS_STYLE_DIR)/$(JOURNAL)$(OUTPUT_FILE_SUFFIX)
|
||||||
FILTERS_FILE_FIRST = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)_filters-first.txt
|
FILTERS_FILE_FIRST = $(THIS_STYLE_DIR)/$(JOURNAL)_filters-first.txt
|
||||||
FILTERS_LIST_FIRST != ./get-filters.sh $(FILTERS_FILE_FIRST)
|
FILTERS_LIST_FIRST != ./get-filters.sh $(FILTERS_FILE_FIRST)
|
||||||
FILTERS_FILE_LAST = $(STYLESHEETS_DIR)/$(JOURNAL)/$(JOURNAL)_filters-last.txt
|
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)
|
FILTERS_LIST_LAST != ./get-filters.sh $(FILTERS_FILE_LAST)
|
||||||
PANDOC_OPTIONS = -s \
|
PANDOC_OPTIONS = -s \
|
||||||
$(FILTERS_LIST_FIRST) \
|
$(FILTERS_LIST_FIRST) \
|
||||||
|
@ -59,3 +68,6 @@ install: $(VALIDATION_PROV_FILE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(STYLESHEETS_DIR)/*/*$(OUTPUT_FILE_SUFFIX)
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user