]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tipc/Makefile
ll_map: Add function to remove link cache entry by index
[mirror_iproute2.git] / tipc / Makefile
index abd33ab073e8905b80653ec611b2bf0440a692aa..a10debe08c619756266cd2ba9e3794b043a60b11 100644 (file)
@@ -1,6 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
 include ../config.mk
 
+TARGETS :=
+
 ifeq ($(HAVE_MNL),y)
 
 TIPCOBJ=bearer.o \
@@ -10,7 +12,7 @@ TIPCOBJ=bearer.o \
     node.o socket.o \
     peer.o tipc.o
 
-TARGETS=tipc
+TARGETS += tipc
 
 endif
 
@@ -20,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)