aboutsummaryrefslogtreecommitdiffstats
path: root/docs/man/Makefile.am
blob: 983dda9abcf473aa61fd5201b5fdc62207f8ca4d (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
43
44
45
46
47
48
49
50
51
52
53
54

dist_man_MANS = \
	qmicli.1              \
	qmi-network.1         \
	qmi-firmware-update.1 \
	$(NULL)

# List of all source files which affect the output of --help-all
QMICLI_SOURCES_WITH_HELP = \
	$(top_srcdir)/src/qmicli/qmicli.c \
	$(top_srcdir)/src/qmicli/qmicli-dms.c \
	$(top_srcdir)/src/qmicli/qmicli-nas.c \
	$(top_srcdir)/src/qmicli/qmicli-wds.c \
	$(top_srcdir)/src/qmicli/qmicli-pbm.c \
	$(top_srcdir)/src/qmicli/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
# Also, make sure that the qmicli.1 file is always generated, even when help2man
# is not available
qmicli.1: $(QMICLI_SOURCES_WITH_HELP)
	$(AM_V_GEN) \
		$(HELP2MAN) \
			--output=$@ \
			--name='Control QMI devices' \
			--help-option='--help-all' \
			--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 $@

# 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 qmi-firmware-update.1 file is always generated, even
# when help2man is not available
qmi-firmware-update.1: $(top_srcdir)/src/qmi-firmware-update/qfu-main.c
	$(AM_V_GEN) \
		$(HELP2MAN) \
			--output=$@ \
			--name='Update firmware in QMI devices' \
			--libtool \
			$(top_builddir)/src/qmi-firmware-update/qmi-firmware-update || \
		touch $@