forked from uyuni-project/uyuni-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.section.functions.j2
40 lines (29 loc) · 2.34 KB
/
Makefile.section.functions.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% for section in sections -%}
define pdf-{{ section.name }}-product
cd $(current_dir)
$(call pdf-book-create,$(1),$(2),$(3),$(4),$(5),{{ section.name }},$(6),$(7),$(8),$(9),$(10))
endef
define pdf-{{ section.name }}-product-uyuni
cd $(current_dir)
$(call pdf-book-create-uyuni,$(1),$(2),$(3),$(4),$(5),{{ section.name }},$(6),$(7),$(8),$(9),$(10))
endef
{% for language in languages -%}
.PHONY: pdf-{{ section.name }}-index-{{ language.langcode }}
pdf-{{ section.name }}-index-{{ language.langcode }}:
$(call pdf-book-create-index,translations/{{ language.langcode }},{{ section.name }},{{ language.langcode }})
.PHONY: pdf-{{ section.name }}-suma-{{ language.langcode }}
pdf-{{ section.name }}-suma-{{ language.langcode }}: translations prepare-antora-suma-{{ language.langcode }} pdf-{{ section.name }}-index-{{ language.langcode }}
$(call pdf-{{ section.name }}-product,translations/{{ language.langcode }},{{ language.pdf_theme_suma }},$(PRODUCTNAME_SUMA),$(SUMA_CONTENT),$(FILENAME_SUMA),$(current_dir)/build/{{ language.langcode }}/pdf,{{ language.langcode }},{{ language.locale }},{{ language.gnudateformat }},{{ language.asciidoctor_pdf_additional_attributes }})
.PHONY: pdf-{{ section.name }}-uyuni-{{ language.langcode }}
pdf-{{ section.name }}-uyuni-{{ language.langcode }}: translations prepare-antora-uyuni-{{ language.langcode }} pdf-{{ section.name }}-index-{{ language.langcode }}
$(call pdf-{{ section.name }}-product-uyuni,translations/{{ language.langcode }},{{ language.pdf_theme_uyuni }},$(PRODUCTNAME_UYUNI),$(UYUNI_CONTENT),$(FILENAME_UYUNI),$(current_dir)/build/{{ language.langcode }}/pdf,{{ language.langcode }},{{ language.locale }},{{ language.gnudateformat }},{{ language.asciidoctor_pdf_additional_attributes }})
{% endfor %}
{% endfor %}
{% for language in languages -%}
# Generate PDF versions of all SUMA books
.PHONY: pdf-all-suma-{{ language.langcode }}
pdf-all-suma-{{ language.langcode }}: translations prepare-antora-suma-{{ language.langcode }} {% for section in sections -%} pdf-{{ section.name }}-suma-{{ language.langcode }} {% endfor %}
# Generate PDF versions of all UYUNI books
.PHONY: pdf-all-uyuni-{{ language.langcode }}
pdf-all-uyuni-{{ language.langcode }}: translations prepare-antora-uyuni-{{ language.langcode }} {% for section in sections -%} pdf-{{ section.name }}-uyuni-{{ language.langcode }} {% endfor %}
{% endfor %}