]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - Makefile
devlink: Add man page for devlink-trap
[mirror_iproute2.git] / Makefile
index ad96fd541580ae287350349752e3a7d1eb49aa18..a3cc88f1aed28b27cda49c75b89b5ee334c503c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ HOSTCC ?= $(CC)
 DEFINES += -D_GNU_SOURCE
 # Turn on transparent support for LFS
 DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-CCOPTS = -O2
+CCOPTS = -O2 -pipe
 WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes
 WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
 
@@ -113,8 +113,15 @@ clobber:
 
 distclean: clobber
 
-check:
-       cd testsuite && $(MAKE) && $(MAKE) alltests
+check: all
+       $(MAKE) -C testsuite
+       $(MAKE) -C testsuite alltests
+       @if command -v man >/dev/null 2>&1; then \
+               echo "Checking manpages for syntax errors..."; \
+               $(MAKE) -C man check; \
+       else \
+               echo "man not installed, skipping checks for syntax errors."; \
+       fi
 
 cscope:
        cscope -b -q -R -Iinclude -sip -slib -smisc -snetem -stc