]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - Makefile
bridge: man: fix "brige" typo
[mirror_iproute2.git] / Makefile
index 67176beff3f7cdd55bebc6c390dad886b8169326..15c81ecfdca3a527be93c36a1e8618991259cbbe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+ifndef VERBOSE
+MAKEFLAGS += --no-print-directory
+endif
+
 PREFIX?=/usr
 LIBDIR?=$(PREFIX)/lib
 SBINDIR?=/sbin
@@ -7,6 +11,7 @@ DOCDIR?=$(DATADIR)/doc/iproute2
 MANDIR?=$(DATADIR)/man
 ARPDDIR?=/var/lib/arpd
 KERNEL_INCLUDE?=/usr/include
+BASH_COMPDIR?=$(DATADIR)/bash-completion/completions
 
 # Path to db_185.h include
 DBM_INCLUDE:=$(DESTDIR)/usr/include
@@ -41,7 +46,7 @@ WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
 CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS)
 YACCFLAGS = -d -t -v
 
-SUBDIRS=lib ip tc bridge misc netem genl tipc man
+SUBDIRS=lib ip tc bridge misc netem genl tipc devlink man
 
 LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
 LDLIBS += $(LIBNETLINK)
@@ -49,7 +54,7 @@ LDLIBS += $(LIBNETLINK)
 all: Config
        @set -e; \
        for i in $(SUBDIRS); \
-       do $(MAKE) $(MFLAGS) -C $$i; done
+       do echo; echo $$i; $(MAKE) $(MFLAGS) -C $$i; done
 
 Config:
        sh configure $(KERNEL_INCLUDE)
@@ -66,6 +71,8 @@ install: all
                $(DESTDIR)$(DOCDIR)/examples/diffserv
        @for i in $(SUBDIRS) doc; do $(MAKE) -C $$i install; done
        install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR)
+       install -m 0755 -d $(DESTDIR)$(BASH_COMPDIR)
+       install -m 0644 bash-completion/tc $(DESTDIR)$(BASH_COMPDIR)
 
 snapshot:
        echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \