| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
# Copyright (C) 2019 - 2021 IƱigo Martinez <[email protected]> |
| 3 |
|
| 4 |
help2man = find_program('help2man') |
| 5 |
|
| 6 |
mans = [ |
| 7 |
['qmicli', [help2man, '--output=@OUTPUT@', '--name=Control QMI devices', '--help-option="--help-all"', qmicli]], |
| 8 |
['qmi-network', [help2man, '--output=@OUTPUT@', '--name=Simple network management of QMI devices', qmi_network]], |
| 9 |
] |
| 10 |
|
| 11 |
if enable_firmware_update |
| 12 |
mans += [['qmi-firmware-update', [help2man, '--output=@OUTPUT@', '--name=Update firmware in QMI devices', qmi_firmware_update]]] |
| 13 |
endif |
| 14 |
|
| 15 |
foreach man: mans |
| 16 |
custom_target( |
| 17 |
man[0], |
| 18 |
output: man[0] + '.1', |
| 19 |
command: man[1], |
| 20 |
install: true, |
| 21 |
install_dir: qmi_mandir / 'man1', |
| 22 |
) |
| 23 |
endforeach |