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