Hi everyone,
I have a makefile, definitions.mk, containing the following:
ifneq ($(MY_VARIABLE),true)
define my-function
< some code defining the function)
endef
else
define my-function
< different code defining the function>
endef
endif
Now, if MY_VARIABLE is set to false I want to include another file containing the definition of my-function. Like:
ifneq ($(MY_VARIABLE),true)
define my-function
< some code defining the function)
endef
else
<include file containing definition of function>
endif
The problem is that I cannot figure out how to do this include. If I write:
include $(BUILD_SYSTEM)/my_function.mk
I will get an error saying:
/bin/bash/: include: command not found
So, how do I go about this?
Any input is appreciated!