]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - Makefile
bridge: man: fix "brige" typo
[mirror_iproute2.git] / Makefile
index 0190aa004a795cf3663ce97fba1024405bd0a944..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
@@ -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`"\";" \