summaryrefslogtreecommitdiff
path: root/docs/man
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-09-13 17:41:04 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-09-13 17:42:00 +0200
commit44ed85d5d1d38daaaf6a552596a4d303130294e9 (patch)
treeac091a37e0b6bfdf1c9ec4269958a67ae640d072 /docs/man
parent32b3b3243f5ef16c241f708d950964466af4e038 (diff)
build: generate manpage for qmi-network
Diffstat (limited to 'docs/man')
-rw-r--r--docs/man/Makefile.am20
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/man/Makefile.am b/docs/man/Makefile.am
index ac84c0d..030b5b8 100644
--- a/docs/man/Makefile.am
+++ b/docs/man/Makefile.am
@@ -1,8 +1,10 @@
-dist_man_MANS = qmicli.1
+dist_man_MANS = \
+ qmicli.1 \
+ qmi-network.1
# List of all source files which affect the output of --help-all
-SOURCES_WITH_HELP = \
+QMICLI_SOURCES_WITH_HELP = \
$(top_srcdir)/src/qmicli/qmicli.c \
$(top_srcdir)/src/qmicli/qmicli-dms.c \
$(top_srcdir)/src/qmicli/qmicli-nas.c \
@@ -14,7 +16,7 @@ SOURCES_WITH_HELP = \
# manpage doesn't get rebuilt when building from a tarball
# Also, make sure that the qmicli.1 file is always generated, even when help2man
# is not available
-qmicli.1: $(SOURCES_WITH_HELP)
+qmicli.1: $(QMICLI_SOURCES_WITH_HELP)
$(AM_V_GEN) \
$(HELP2MAN) \
--output=$@ \
@@ -23,3 +25,15 @@ qmicli.1: $(SOURCES_WITH_HELP)
--libtool \
$(top_builddir)/src/qmicli/qmicli || \
touch $@
+
+# Depend only in the .in file, not in the actual script, so that the
+# manpage doesn't get rebuilt when building from a tarball.
+# Make sure that the qmi-network.1 file is always generated, even when help2man
+# is not available
+qmi-network.1: $(top_srcdir)/utils/qmi-network.in
+ $(AM_V_GEN) \
+ $(HELP2MAN) \
+ --output=$@ \
+ --name='Simple network management of QMI devices' \
+ $(top_builddir)/utils/qmi-network || \
+ touch $@