I just realized for simplicity and better understanding what I am trying
to achieve both makefiles could be merged into:
---
dst ?= .
$(dst)/target1.out: $(dst)/test/Test.cc.o
@echo linking
$(dst)/%.cc.d: ../../src/target1/%.cc
@echo making dep
$(dst)/%.cc.o: ../../src/target1/%.cc
Hello,
I have got two Makefiles:
Makefile2:
./target1.out: ./test/Test.cc.o
@echo linking
./%.cc.d: ../../src/target1/%.cc
@echo making dep
./%.cc.o: ../../src/target1/%.cc
@echo compiling
-include ./test/Test.cc.d
and
Makefile2_working:
---