Skip to content

Commit 86b84c9

Browse files
committed
configure.ac: when falling back to can_install_doc_man=yes do also try to touch the artifacts as when we do upon deliberate choice [networkupstools#3314]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 933f2c1 commit 86b84c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,6 +4166,9 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
41664166
if test "${have_disted_doc_man}" = yes || test "${have_disted_doc_man}" = yes-placeholder ; then
41674167
AC_MSG_WARN([Unable to build ${nut_doc_build_target_base} documentation, but can install pre-built distributed copies])
41684168
DOC_INSTALL_DISTED_MANS="yes"
4169+
dnl Avoid rebuilding existing build products due to their timestamp dependencies;
4170+
dnl ignore "touch" errors due to e.g. read-only sources (distcheck, ISO image, etc.):
4171+
touch -r "${abs_srcdir}"/docs/man/Makefile.am "${abs_srcdir}"/docs/man/*.{1,2,3,4,5,6,7,8,9}* "${abs_srcdir}"/docs/man/*.{txt,xml,html,pdf} || true
41694172
can_install_doc_man=yes
41704173
else
41714174
AC_MSG_WARN([Unable to build ${nut_doc_build_target_base} documentation, and unable to install pre-built distributed copies because they are absent; will reflect on this below])

0 commit comments

Comments
 (0)