blob: 1da5216221272a70157998d6ed42cd01eb0f67b4 [file] [log] [blame]
diff -aruN iproute2-3.18.0/Makefile iproute2-3.18.0.N/Makefile
--- iproute2-3.18.0/Makefile 2015-01-09 19:01:53.842464400 -0800
+++ iproute2-3.18.0.N/Makefile 2015-01-09 19:55:26.738606151 -0800
@@ -8,6 +8,8 @@
MANDIR=$(DATADIR)/man
ARPDDIR=/var/lib/arpd
+findfiles = $(shell find $(1) -maxdepth 1 \( -type f -o -type l \))
+
# Path to db_185.h include
DBM_INCLUDE:=$(ROOTDIR)/usr/include
@@ -55,12 +57,12 @@
install -m 0755 -d $(DESTDIR)$(ARPDDIR)
install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples
install -m 0755 -d $(DESTDIR)$(DOCDIR)/examples/diffserv
- install -m 0644 README.iproute2+tc $(shell find examples -maxdepth 1 -type f) \
+ install -m 0644 README.iproute2+tc $(call findfiles,examples) \
$(DESTDIR)$(DOCDIR)/examples
- install -m 0644 $(shell find examples/diffserv -maxdepth 1 -type f) \
+ install -m 0644 $(call findfiles,examples/diffserv) \
$(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 0644 $(call findfiles) $(DESTDIR)$(CONFDIR)
snapshot:
echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \