Leandro Lucarella wrote:

Thanks!

This worked:

    __dummy := $(shell ./gen_file $(MAKE) $(if $(MAKEFLAGS),-$(MAKEFLAGS),) \
                       $(MAKEOVERRIDES) $(MAKECMDGOALS))
    sinclude file

It's a little dirtier than I what expected to be (and well, what I'm doing
is pretty dirty itself =), but seems to works rather well.

Please let me know if you find any flaws on this approach.


You may also find this Mr. Make article useful:

        http://www.cmcrossroads.com/content/view/6528/268/

It describes a system for getting gmake to consider targets out-of-date when the commands for the target have changed.

Hope that helps,

Eric Melski
Electric Cloud, Inc.
http://blog.electric-cloud.com/



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to