summaryrefslogtreecommitdiff
path: root/make/target.mk
blob: 06e895df905d907063c0754c27a37214f7d31b25 (plain)
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 $(ERL_TOP)/erts/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