summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-11-11 09:06:14 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-11-11 09:06:14 +0100
commit6f5d1228a4c2dd8c7b01d7b7adcd17b2e672546c (patch)
treeb473d725ec2f70163b06f624036bbfda9b6c373e /doc/it
parente86729823302f391fc214ff8c267e43bf324d5c0 (diff)
downloadweechat-6f5d1228a4c2dd8c7b01d7b7adcd17b2e672546c.zip
doc: fix warnings on build of man page with a2x 8.6.9
The -D/--destination-dir displays a warning for non HTML doc (so for man page). So the man page is copied to the build directory before being built.
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/CMakeLists.txt3
-rw-r--r--doc/it/Makefile.am3
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt
index a99492def..185d477d2 100644
--- a/doc/it/CMakeLists.txt
+++ b/doc/it/CMakeLists.txt
@@ -21,7 +21,8 @@ IF (ENABLE_MAN)
# man page
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
- COMMAND ${A2X_EXECUTABLE} ARGS -a lang=it -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L -D ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.txt
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.txt ${CMAKE_CURRENT_BINARY_DIR}/
+ COMMAND ${A2X_EXECUTABLE} ARGS -a lang=it -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.it.txt
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.txt
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.txt
diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am
index b8f6fdcea..deefad196 100644
--- a/doc/it/Makefile.am
+++ b/doc/it/Makefile.am
@@ -50,7 +50,8 @@ all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.it.txt cmdline_options.it.txt
- $(A2X) -a lang=it -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L -D . $(abs_top_srcdir)/doc/it/weechat.1.it.txt
+ cp -f $(abs_top_srcdir)/doc/it/weechat.1.it.txt .
+ $(A2X) -a lang=it -a revision="WeeChat $(VERSION)" -d manpage -f manpage -L weechat.1.it.txt
# user's guide
weechat_user.it.html: weechat_user.it.txt cmdline_options.it.txt $(wildcard autogen/user/*.txt)