summaryrefslogtreecommitdiff
path: root/doc/es
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-08-07 11:05:18 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-08-07 11:15:28 +0200
commitdef564c5afad0b6ae9696489ce1c1d2e8d2b5ba6 (patch)
tree2410a72d2db45801a4ef0ec4ce85bf8d40752e77 /doc/es
parent57ea636fd60e294ad931a4524130f1e4fa0337aa (diff)
downloadweechat-def564c5afad0b6ae9696489ce1c1d2e8d2b5ba6.zip
doc: add build of Spanish FAQ
Diffstat (limited to 'doc/es')
-rw-r--r--doc/es/CMakeLists.txt13
-rw-r--r--doc/es/Makefile.am8
2 files changed, 20 insertions, 1 deletions
diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt
index 13a2979d6..8a28dc6aa 100644
--- a/doc/es/CMakeLists.txt
+++ b/doc/es/CMakeLists.txt
@@ -19,6 +19,19 @@
if(ENABLE_DOC)
+ # FAQ
+ add_custom_command(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.es.html
+ COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -o weechat_faq.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.es.adoc
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
+ ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.es.adoc
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ COMMENT "Building weechat_faq.es.html"
+ )
+ add_custom_target(doc-faq-es ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.es.html)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.es.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
+
# quickstart
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html
diff --git a/doc/es/Makefile.am b/doc/es/Makefile.am
index a2982cfe2..1f524ddcd 100644
--- a/doc/es/Makefile.am
+++ b/doc/es/Makefile.am
@@ -21,6 +21,7 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
+ weechat_faq.es.adoc \
weechat_quickstart.es.adoc
if MAN
@@ -29,12 +30,17 @@ if MAN
man_uninstall =
endif
if DOC
- doc_targets = weechat_quickstart.es.html
+ doc_targets = weechat_faq.es.html \
+ weechat_quickstart.es.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
+# FAQ
+weechat_faq.es.html: weechat_faq.es.adoc $(abs_top_srcdir)/doc/docinfo.html
+ $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.es.html $(abs_top_srcdir)/doc/es/weechat_faq.es.adoc
+
# quickstart
weechat_quickstart.es.html: weechat_quickstart.es.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.adoc