]> git.proxmox.com Git - mirror_iproute2.git/blame - man/Makefile
Makefile: check manpages for syntax errors
[mirror_iproute2.git] / man / Makefile
CommitLineData
6054c1eb 1# SPDX-License-Identifier: GPL-2.0
761a1e60
CT
2INSTALL=install
3INSTALLDIR=install -m 0755 -d
4INSTALLMAN=install -m 0644
0cf06118
LB
5# Pass the same parameters as Lintian uses on Debian.
6MAN_CHECK=LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings \
7 --encoding=UTF-8 --local-file --troff-device=utf8 --ditroff
8# Hide man output, count and print errors.
9MAN_REDIRECT=2>&1 >/dev/null | tee /dev/fd/2 | wc -l
761a1e60 10
57463073 11SUBDIRS = man3 man7 man8
761a1e60 12
0cf06118 13all clean install check:
55eaaeb5 14 @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir $@ || exit $$?; done
761a1e60
CT
15
16distclean: clean
17
0cf06118 18.PHONY: install clean distclean check
761a1e60
CT
19
20.EXPORT_ALL_VARIABLES: