]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iproute2: Installation errors without libmnl
authorEmeric Dupont <emeric.dupont@zii.aero>
Mon, 3 Dec 2018 11:13:06 +0000 (12:13 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 4 Dec 2018 22:27:08 +0000 (14:27 -0800)
When performing make install in iproute2 (current git master),
     if $(HAVE_MNL) is not selected, some Makefiles try to call
     install with an empty target, which causes a non-critical make error.

Signed-off-by: Emeric Dupont <emeric.dupont@zii.aero>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
devlink/Makefile
rdma/Makefile
tipc/Makefile

index 040b942e802e6b1cb0514d73d1ddf96798c25b99..7da7d1fa18d5068e36ba0f842805e800d26539fa 100644 (file)
@@ -16,7 +16,9 @@ devlink: $(DEVLINKOBJ)
        $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
 
 install: all
-       install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+       for i in $(TARGETS); \
+       do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
+       done
 
 clean:
        rm -f $(DEVLINKOBJ) $(TARGETS)
index 819fcbe37506ae7252288eb711078213a3fa479c..0498994fc23339a8494752e10631ee09d8556199 100644 (file)
@@ -17,7 +17,9 @@ rdma: $(RDMA_OBJ) $(LIBS)
        $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
 
 install: all
-       install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+       for i in $(TARGETS); \
+       do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
+       done
 
 clean:
        rm -f $(RDMA_OBJ) $(TARGETS)
index fdb18d39b67d5ba3bd1346b83534ebc1d29e7ab4..a10debe08c619756266cd2ba9e3794b043a60b11 100644 (file)
@@ -22,7 +22,9 @@ tipc: $(TIPCOBJ)
        $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
 
 install: all
-       install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+       for i in $(TARGETS); \
+       do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
+       done
 
 clean:
        rm -f $(TIPCOBJ) $(TARGETS)