aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--docs/man/Makefile.am20
2 files changed, 18 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index ffc0ab1..30c82b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -85,5 +85,6 @@ docs/reference/libqmi-glib/xml
docs/reference/libqmi-glib/.libs
docs/man/qmicli.1
+docs/man/qmi-network.1
utils/qmi-network
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 $@