]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - man/man8/Makefile
rdma: Add the prefix for driver attributes
[mirror_iproute2.git] / man / man8 / Makefile
index ff80c9884f50c24e422d0519b3eaa269b125e400..0269e17406b713b3575262793c7a2772e84d3e3c 100644 (file)
@@ -1,15 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
 TARGETS = ip-address.8 ip-link.8 ip-route.8
 
-MAN8PAGES = $(TARGETS) ip.8 arpd.8 lnstat.8 routel.8 rtacct.8 rtmon.8 ss.8 \
-       tc.8 tc-bfifo.8 tc-cbq.8 tc-cbq-details.8 tc-choke.8 tc-codel.8 \
-       tc-drr.8 tc-ematch.8 tc-fq_codel.8 tc-hfsc.8 tc-htb.8 \
-       tc-netem.8 tc-pfifo.8 tc-pfifo_fast.8 tc-prio.8 tc-red.8 \
-       tc-sfb.8 tc-sfq.8 tc-stab.8 tc-tbf.8 \
-       bridge.8 rtstat.8 ctstat.8 nstat.8 routef.8 \
-       ip-addrlabel.8 ip-l2tp.8 \
-       ip-maddress.8 ip-monitor.8 ip-mroute.8 ip-neighbour.8 \
-       ip-netns.8 ip-ntable.8 ip-rule.8 ip-tunnel.8 ip-xfrm.8 \
-       ip-tcp_metrics.8 ip-netconf.8 ip-token.8
+MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
 
 all: $(TARGETS)
 
@@ -31,4 +23,8 @@ install:
        $(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8
        $(INSTALLMAN) $(MAN8PAGES) $(DESTDIR)$(MANDIR)/man8
 
-.PHONY: install clean distclean
+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