--- Quote Start ---
Try adding an 'echo xxx $*' line before the $(CP) $< $@ one.
That will show all the dependencies.
--- Quote End ---
I have
$(LIB) : $(ACTIVE_CONFIG_LIB)
echo xxx $*
echo $(LIB)
echo $(ACTIVE_CONFIG_LIB)
$(CP) $< $@
and get:
echo xxx liblwip_altera_tse_FALCON
xxx liblwip_altera_tse_FALCON
echo liblwip_altera_tse_FALCON.a
liblwip_altera_tse_FALCON.a
echo obj/Release/liblwip_altera_tse_FALCON.a
obj/Release/liblwip_altera_tse_FALCON.a
cp -f -p obj/Release/liblwip_altera_tse_FALCON.a liblwip_altera_tse_FALCON.a
And the time-stamps of $(LIB ) and $(ACTIVE_CONFIG) are identical.
Thanks for your suggestion. I wouldn't mind knowing if I can do this without hand-modifying a makefile.
Bill