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