What sort of black magic I need to add to Makefile.am so that resulting Makefile could contain regular conditional make statements:
ifeq ($(SOMETHING),1)
target:
do this
else
target:
do that
endif
Please, note, that I ask exactly what I ask, no workarounds, or automake conditionals, I need that conditional in final makefile.
Let's start out with the obvious small change:
If this doesn't do it, please elaborate more on why it is that you need a conditional in the final Makefile. Otherwise this feels like an XY problem.