summaryrefslogtreecommitdiff
path: root/docs/man
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-09-13 16:24:43 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-09-13 16:27:28 +0200
commit22d9c8440970a5490b9c5847af7c4aa4d004d913 (patch)
treed698c191c3dcfd01a0dc997a39c76e4ee3ceb040 /docs/man
parent4fe2e05c360d4cbbc75f2c4960b92f9447d550af (diff)
build: generate manpage for 'mbimcli'
Diffstat (limited to 'docs/man')
-rw-r--r--docs/man/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/man/Makefile.am b/docs/man/Makefile.am
new file mode 100644
index 0000000..a427bc4
--- /dev/null
+++ b/docs/man/Makefile.am
@@ -0,0 +1,21 @@
+
+dist_man_MANS = mbimcli.1
+
+# List of all source files which affect the output of --help-all
+SOURCES_WITH_HELP = \
+ $(top_srcdir)/cli/mbimcli-basic-connect.c \
+ $(top_srcdir)/cli/mbimcli.c
+
+# Depend only in the source files, not in the actual program, so that the
+# manpage doesn't get rebuilt when building from a tarball
+# Also, make sure that the mbimcli.1 file is always generated, even when help2man
+# is not available
+mbimcli.1: $(SOURCES_WITH_HELP)
+ $(AM_V_GEN) \
+ $(HELP2MAN) \
+ --output=$@ \
+ --name='Control MBIM devices' \
+ --help-option='--help-all' \
+ --libtool \
+ $(top_builddir)/cli/mbimcli || \
+ touch $@