]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
devlink, rdma, tipc: properly define TARGETS without HAVE_MNL
authorMatthias Schiffer <mschiffer@universe-factory.net>
Wed, 3 Jan 2018 15:28:52 +0000 (16:28 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 6 Jan 2018 00:32:17 +0000 (16:32 -0800)
Leaving a variable with a generic name such as TARGETS undefined would lead
to Make picking up its value from the environment. Avoid this by always
defining TARGETS in the Makefiles.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
devlink/Makefile
rdma/Makefile
tipc/Makefile

index 3afda65e6635dbf9b53d3f24e2933f9efdc298a9..ace34c7b0d600a520f65d59a696283019e25fef8 100644 (file)
@@ -1,10 +1,12 @@
 # SPDX-License-Identifier: GPL-2.0
 include ../config.mk
 
+TARGETS :=
+
 ifeq ($(HAVE_MNL),y)
 
 DEVLINKOBJ = devlink.o mnlg.o
-TARGETS=devlink
+TARGETS += devlink
 
 CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
 LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
index c8966bfda9f864577cb4e8529596b9cd7e227742..454f25f867b6ec3d2d2f453881c94bf05d0b6f21 100644 (file)
@@ -1,11 +1,13 @@
 # SPDX-License-Identifier: GPL-2.0
 include ../config.mk
 
+TARGETS :=
+
 ifeq ($(HAVE_MNL),y)
 
 RDMA_OBJ = rdma.o utils.o dev.o link.o
 
-TARGETS=rdma
+TARGETS += rdma
 endif
 
 all:   $(TARGETS) $(LIBS)
index abd33ab073e8905b80653ec611b2bf0440a692aa..fdb18d39b67d5ba3bd1346b83534ebc1d29e7ab4 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