BUG: Eclipse makefiles don’t recompile on header change

As you can see in the console below, If the makefile(or subdir.mk) uses -MT”$(@:%.o=%.d)” then, when changing the header file, the project is not recompiled. Makefile simply states “Nothing to be done for all”. Which is not the outcome I’d expect.

However, if I replaced -MT”$(@:%.o=%.d)” with -MT”$@” then, everything works as expected. If you change the files, the project is recompiled, if you make the project again(without changing sources), nothing happens, and if you change the sources again, the files are recompiled.
[bash]
paul@pgrozav:~/data/tmp/mftst$ for f in *; do echo —$f—; cat $f; done
—a.cpp—
#include "a.h"
int main(){}
—a.h—
//
—makefile—
cpps := a.cpp
objs := a.o
deps := a.d

-include $(deps)

%.o:%.cpp
g++ -c "$<" -o "$@" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"

all: a

a: $(objs)
g++ $(objs) -o a

clean:
rm -rf $(objs) $(deps) a
paul@pgrozav:~/data/tmp/mftst$ make all
g++ -c "a.cpp" -o "a.o" -MMD -MP -MF"a.d" -MT"a.d"
g++ a.o -o a
paul@pgrozav:~/data/tmp/mftst$ echo "//test" >> a.h
paul@pgrozav:~/data/tmp/mftst$ make all
make: Nothing to be done for ‘all’.
paul@pgrozav:~/data/tmp/mftst$ vim makefile # Replaced -MT"$(@:%.o=%.d)" with -MT"$@"
paul@pgrozav:~/data/tmp/mftst$ echo "//test" >> a.h
paul@pgrozav:~/data/tmp/mftst$ make all
g++ -c "a.cpp" -o "a.o" -MMD -MP -MF"a.d" -MT"a.o"
g++ a.o -o a
paul@pgrozav:~/data/tmp/mftst$ make all
make: Nothing to be done for ‘all’.
paul@pgrozav:~/data/tmp/mftst$ echo "//test" >> a.h
paul@pgrozav:~/data/tmp/mftst$ make all
g++ -c "a.cpp" -o "a.o" -MMD -MP -MF"a.d" -MT"a.o"
g++ a.o -o a
[/bash]
Thanks to: https://www.eclipse.org/forums/index.php/t/796526/