]> git.proxmox.com Git - mirror_iproute2.git/blob - man/Makefile
Makefile: check manpages for syntax errors
[mirror_iproute2.git] / man / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 INSTALL=install
3 INSTALLDIR=install -m 0755 -d
4 INSTALLMAN=install -m 0644
5 # Pass the same parameters as Lintian uses on Debian.
6 MAN_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.
9 MAN_REDIRECT=2>&1 >/dev/null | tee /dev/fd/2 | wc -l
10
11 SUBDIRS = man3 man7 man8
12
13 all clean install check:
14 @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir $@ || exit $$?; done
15
16 distclean: clean
17
18 .PHONY: install clean distclean check
19
20 .EXPORT_ALL_VARIABLES: