summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-02-09 11:54:35 -0500
committerMichael Biebl <biebl@debian.org>2013-02-09 18:08:23 +0100
commit6ea196de0e04103bbe6019b4690c9ff99721f0b7 (patch)
treefc8c38e6993083e0cae7e525c854f61aa41592ef /man
parent51c6338329132753cfeb9cef2447649d11ebd672 (diff)
downloadNetworkManager-6ea196de0e04103bbe6019b4690c9ff99721f0b7.tar.gz
man: Fix previous commit to honor --disable-doc
In that mode, we shouldn't attempt to generate any manpages. While we're here, rewrite this file (using nonrecursive style) so we don't install non-generated ones either. Signed-off-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am20
1 files changed, 7 insertions, 13 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 66863db58c..d39f5bb023 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,24 +1,20 @@
+man_MANS =
+CLEANFILES =
if ENABLE_DOC
XSLTPROC = xsltproc --xinclude --nonet
-GENERATED_FILES = nm-settings.xml nm-settings.5
-
nm-settings.5: nm-settings.xml
$(XSLTPROC) $(top_srcdir)/tools/manpages-docbook.xsl $(builddir)/nm-settings.xml
+CLEANFILES += nm-settings.5
nm-settings.xml: $(top_builddir)/tools/generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la
rm -f $(builddir)/$@
$(top_builddir)/tools/generate-settings-spec refentry $(builddir)/$@
+CLEANFILES += nm-settings.xml
-else
-
-GENERATED_FILES =
-
-endif
-
-man_MANS = \
+man_MANS += \
NetworkManager.8 \
NetworkManager.conf.5 \
nm-system-settings.conf.5 \
@@ -27,14 +23,12 @@ man_MANS = \
nmcli.1 \
nm-settings.5
+endif
+
EXTRA_DIST = \
- $(man_MANS) \
NetworkManager.8.in \
NetworkManager.conf.5.in \
nm-system-settings.conf.5.in \
nm-tool.1.in \
nm-online.1.in \
nmcli.1.in
-
-CLEANFILES = $(man_MANS) $(GENERATED_FILES)
-