aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/make/target.mk
blob: 4ae470b9e2192d32b6a909b665150bb70c01f40e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ifeq ($(OVERRIDE_TARGET),)

ifeq ($(TARGET),)

TARGET := $(shell $(DIAMETER_TOP)/autoconf/config.guess)

else

endif

else

ifneq ($(TARGET),)

ifneq ($(TARGET), $(OVERRIDE_TARGET))
$(warning overriding $$(TARGET) = \
	"$(TARGET)" \
	with \
	$$(OVERRIDE_TARGET) = \
	"$(OVERRIDE_TARGET)")
else
endif

override TARGET := $(OVERRIDE_TARGET)

else

TARGET := $(OVERRIDE_TARGET)

endif

endif