aboutsummaryrefslogtreecommitdiffstats
path: root/docs/man
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-09-04 18:03:29 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-09-04 18:03:29 +0200
commit075f341c3cccd5ed648f208e55af617b3c20cec7 (patch)
treea6fa8839e4e2f5f12d07431c2ae711bfbd101c3d /docs/man
parent6c92f49369733add54cf17f0d8d22d636727ca52 (diff)
downloadexternal_libqmi-075f341c3cccd5ed648f208e55af617b3c20cec7.zip
external_libqmi-075f341c3cccd5ed648f208e55af617b3c20cec7.tar.gz
external_libqmi-075f341c3cccd5ed648f208e55af617b3c20cec7.tar.bz2
build: always install the manpage
So the manpage file needs to always be available. Three cases are considered: * Build from tarball, where manpage file is distributed and therefore not generated. * Build from git, with help2man, where manpage is regenerated. * Build from git, but without help2man (ostree case), where we just generate a dummy manpage file.
Diffstat (limited to 'docs/man')
-rw-r--r--docs/man/Makefile.am22
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/man/Makefile.am b/docs/man/Makefile.am
index a2d3376..7fe7706 100644
--- a/docs/man/Makefile.am
+++ b/docs/man/Makefile.am
@@ -1,9 +1,5 @@
-dist_man_MANS =
-
-if BUILDOPT_MAN
-dist_man_MANS += qmicli.1
-endif
+dist_man_MANS = qmicli.1
# List of all source files which affect the output of --help-all
SOURCES_WITH_HELP = \
@@ -16,10 +12,14 @@ SOURCES_WITH_HELP = \
# 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 qmicli.1 file is always generated, even when help2man
+# is not available
qmicli.1: $(SOURCES_WITH_HELP)
- - $(AM_V_GEN) $(HELP2MAN) \
- --output=$@ \
- --name='Control QMI devices' \
- --help-option='--help-all' \
- --libtool \
- $(top_builddir)/cli/qmicli
+ $(AM_V_GEN) \
+ $(HELP2MAN) \
+ --output=$@ \
+ --name='Control QMI devices' \
+ --help-option='--help-all' \
+ --libtool \
+ $(top_builddir)/cli/qmicli || \
+ touch $@