@@ -25,20 +25,24 @@ BINDIR := $(PREFIX)/bin
2525INCDIR := $(PREFIX ) /include
2626BASEDIR := $(CURDIR )
2727BUILDDIR := $(BASEDIR ) /.build
28- CONFIG := $(BASEDIR ) /.config.mk
2928MODULES := $(BASEDIR ) /modules
29+ CONFIG := $(BASEDIR ) /.config.mk
3030TEST := 0
3131DEBUG := 0
3232PROFILE := 0
3333TRACE := 0
3434
35+ include $(BASEDIR ) /make/functions.mk
3536include $(BASEDIR ) /make/system.mk
36- include $(BASEDIR ) /project.mk
3737include $(BASEDIR ) /make/tools.mk
3838include $(BASEDIR ) /dependencies.mk
39+ include $(BASEDIR ) /project.mk
3940
40- DEPENDENCIES += $(TEST_DEPENDENCIES )
41+ # Compute the full list of dependencies
42+ UNIQ_DEPENDENCIES := $(call uniq, $(DEPENDENCIES ) $(TEST_DEPENDENCIES ) )
43+ DEPENDENCIES = $(UNIQ_DEPENDENCIES )
4144
45+ # Determine versions
4246ifeq ($(findstring -devel,$(ARTIFACT_VERSION ) ) ,-devel)
4347 $(foreach dep, $(DEPENDENCIES), \
4448 $(eval $(dep)_BRANCH=devel) \
@@ -116,23 +120,23 @@ define vardef =
116120endef
117121
118122# Define predefined variables
119- ifndef $(ARTIFACT_VARS )_NAME
120- $(ARTIFACT_VARS )_NAME := $(ARTIFACT_NAME )
123+ ifndef $(ARTIFACT_ID )_NAME
124+ $(ARTIFACT_ID )_NAME := $(ARTIFACT_NAME )
121125endif
122- ifndef $(ARTIFACT_VARS )_DESC
123- $(ARTIFACT_VARS )_DESC := $(ARTIFACT_DESC )
126+ ifndef $(ARTIFACT_ID )_DESC
127+ $(ARTIFACT_ID )_DESC := $(ARTIFACT_DESC )
124128endif
125- ifndef $(ARTIFACT_VARS )_VERSION
126- $(ARTIFACT_VARS )_VERSION := $(ARTIFACT_VERSION )
129+ ifndef $(ARTIFACT_ID )_VERSION
130+ $(ARTIFACT_ID )_VERSION := $(ARTIFACT_VERSION )
127131endif
128- ifndef $(ARTIFACT_VARS )_PATH
129- $(ARTIFACT_VARS )_PATH := $(BASEDIR )
132+ ifndef $(ARTIFACT_ID )_PATH
133+ $(ARTIFACT_ID )_PATH := $(BASEDIR )
130134endif
131135
132- $(ARTIFACT_VARS )_TESTING = $(TEST )
133- $(ARTIFACT_VARS )_TYPE := src
136+ $(ARTIFACT_ID )_TESTING = $(TEST )
137+ $(ARTIFACT_ID )_TYPE := src
134138
135- OVERALL_DEPS := $(DEPENDENCIES ) $(ARTIFACT_VARS )
139+ OVERALL_DEPS := $(DEPENDENCIES ) $(ARTIFACT_ID )
136140__tmp := $(foreach dep,$(OVERALL_DEPS ) ,$(call vardef, $(dep ) ) )
137141
138142CONFIG_VARS = \
0 commit comments