From f1e5d631932a05e3147b6af73ce1230150f9f979 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Tue, 28 Jul 2015 16:20:47 +0200 Subject: [PATCH] doc: fix related to conditional compilation of man page abrt-auto-reporting.txt is a copy of either abrt-auto-reporting-authenticated.txt or abrt-auto-reporting-unauthenticated.txt. abrt-auto-reporting.txt file always exists because MAN1_TXT variable contains it and is distributed (the file is listed in the EXTRA_DIST variable). It would be difficult to ensure to have abrt-auto-reporting.txt in the MAN1_TXT and exclude it from the EXTRA_DIST. So enforce copy, to get the right version of man page, seems like the easiest way. Related to rhbz#1191572 Signed-off-by: Matej Habrnal --- doc/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/Makefile.am b/doc/Makefile.am index f39c3bf..fdd08cf 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -82,6 +82,15 @@ MAN_SOURCE = MAN_SOURCE += abrt-auto-reporting-authenticated.txt MAN_SOURCE += abrt-auto-reporting-unauthenticated.txt +# abrt-auto-reporting.txt is a copy of either +# abrt-auto-reporting-authenticated.txt or +# abrt-auto-reporting-unauthenticated.txt. abrt-auto-reporting.txt file always +# exists because MAN1_TXT variable contains it and is distributed (the file is listed +# in the EXTRA_DIST variable). It would be difficult to ensure +# to have abrt-auto-reporting.txt in the MAN1_TXT and exclude it +# from the EXTRA_DIST. So enforce copy, to get the right version of man page, seems +# like the easiest way. +.PHONY: abrt-auto-reporting.txt if AUTHENTICATED_AUTOREPORTING abrt-auto-reporting.txt: abrt-auto-reporting-authenticated.txt else -- 2.4.3