diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-09-13 17:41:04 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-09-13 17:42:00 +0200 |
commit | 44ed85d5d1d38daaaf6a552596a4d303130294e9 (patch) | |
tree | ac091a37e0b6bfdf1c9ec4269958a67ae640d072 | |
parent | 32b3b3243f5ef16c241f708d950964466af4e038 (diff) | |
download | external_libqmi-44ed85d5d1d38daaaf6a552596a4d303130294e9.zip external_libqmi-44ed85d5d1d38daaaf6a552596a4d303130294e9.tar.gz external_libqmi-44ed85d5d1d38daaaf6a552596a4d303130294e9.tar.bz2 |
build: generate manpage for qmi-network
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | docs/man/Makefile.am | 20 |
2 files changed, 18 insertions, 3 deletions
@@ -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 $@ |