summaryrefslogtreecommitdiff
path: root/docs/man/Makefile.am
blob: f31c336cc9404654f2fd6b921ccab1fe24796acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

dist_man_MANS = \
	mbimcli.1 \
	mbim-network.1

# List of all source files which affect the output of --help-all
MBIMCLI_SOURCES_WITH_HELP = \
	$(top_srcdir)/src/mbimcli/mbimcli-atds.c \
	$(top_srcdir)/src/mbimcli/mbimcli-basic-connect.c \
	$(top_srcdir)/src/mbimcli/mbimcli-ms-basic-connect-extensions.c \
	$(top_srcdir)/src/mbimcli/mbimcli-dss.c \
	$(top_srcdir)/src/mbimcli/mbimcli-ms-firmware-id.c \
	$(top_srcdir)/src/mbimcli/mbimcli-ms-host-shutdown.c \
	$(top_srcdir)/src/mbimcli/mbimcli-intel-firmware-update.c \
	$(top_srcdir)/src/mbimcli/mbimcli-phonebook.c \
	$(top_srcdir)/src/mbimcli/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: $(MBIMCLI_SOURCES_WITH_HELP)
	$(AM_V_GEN) \
		$(HELP2MAN) \
			--output=$@ \
			--name='Control MBIM devices' \
			--help-option='--help-all' \
			--libtool \
			$(top_builddir)/src/mbimcli/mbimcli || \
		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 mbim-network.1 file is always generated, even when help2man
# is not available
mbim-network.1: $(top_srcdir)/utils/mbim-network.in
	$(AM_V_GEN) \
		$(HELP2MAN) \
			--output=$@ \
			--name='Simple network management of MBIM devices' \
			$(top_builddir)/utils/mbim-network || \
		touch $@