iproute2/man/man3/Makefile
Luca Boccassi 0cf061183e Makefile: check manpages for syntax errors
Pass the same parameters Lintian uses in Debian.

$ make check
<...>
Checking manpages for syntax errors...
<standard input>:48: warning: macro `Q' not defined
Error in tc-taprio.8
Makefile:27: recipe for target 'check' failed

Signed-off-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2019-01-14 08:01:51 -08:00

19 lines
376 B
Makefile

# SPDX-License-Identifier: GPL-2.0
MAN3PAGES = $(wildcard *.3)
all:
distclean: clean
clean:
install:
$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man3
$(INSTALLMAN) $(MAN3PAGES) $(DESTDIR)$(MANDIR)/man3
check:
@for page in $(MAN3PAGES); do test 0 -eq $$($(MAN_CHECK) $$page \
$(MAN_REDIRECT)) || { echo "Error in $$page"; exit 1; }; done
.PHONY: install clean distclean check