mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-15 13:58:07 +00:00

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>
31 lines
703 B
Makefile
31 lines
703 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
TARGETS = ip-address.8 ip-link.8 ip-route.8
|
|
|
|
MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
|
|
|
|
all: $(TARGETS)
|
|
|
|
ip-address.8: ip-address.8.in
|
|
sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
|
|
|
|
ip-link.8: ip-link.8.in
|
|
sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
|
|
|
|
ip-route.8: ip-route.8.in
|
|
sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
|
|
|
|
distclean: clean
|
|
|
|
clean:
|
|
@rm -f $(TARGETS)
|
|
|
|
install:
|
|
$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALLMAN) $(MAN8PAGES) $(DESTDIR)$(MANDIR)/man8
|
|
|
|
check: all
|
|
@for page in $(MAN8PAGES); do test 0 -eq $$($(MAN_CHECK) $$page \
|
|
$(MAN_REDIRECT)) || { echo "Error in $$page"; exit 1; }; done
|
|
|
|
.PHONY: install clean distclean check
|