arrfab / rpms / abrt

Forked from rpms/abrt 5 years ago
Clone

Blame SOURCES/0158-doc-fix-related-to-conditional-compilation-of-man-pa.patch

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