diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Makefile.am | 2 | ||||
-rw-r--r-- | docs/man/Makefile.am | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am index f3ddc22..88a54ad 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -1 +1 @@ -SUBDIRS = reference +SUBDIRS = reference man diff --git a/docs/man/Makefile.am b/docs/man/Makefile.am new file mode 100644 index 0000000..608545b --- /dev/null +++ b/docs/man/Makefile.am @@ -0,0 +1,21 @@ + +dist_man_MANS = qmicli.1 + +# List of all source files which affect the output of --help-all +SOURCES_WITH_HELP = \ + $(top_srcdir)/cli/qmicli.c \ + $(top_srcdir)/cli/qmicli-dms.c \ + $(top_srcdir)/cli/qmicli-nas.c \ + $(top_srcdir)/cli/qmicli-wds.c \ + $(top_srcdir)/cli/qmicli-pbm.c \ + $(top_srcdir)/cli/qmicli-uim.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 +qmicli.1: $(SOURCES_WITH_HELP) + - $(AM_V_GEN) $(HELP2MAN) \ + --output=$@ \ + --name='Control QMI devices' \ + --help-option='--help-all' \ + --libtool \ + $(top_builddir)/cli/qmicli |