diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-09-13 16:24:43 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-09-13 16:27:28 +0200 |
commit | 22d9c8440970a5490b9c5847af7c4aa4d004d913 (patch) | |
tree | d698c191c3dcfd01a0dc997a39c76e4ee3ceb040 /docs/man | |
parent | 4fe2e05c360d4cbbc75f2c4960b92f9447d550af (diff) |
build: generate manpage for 'mbimcli'
Diffstat (limited to 'docs/man')
-rw-r--r-- | docs/man/Makefile.am | 21 |
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 $@ |