Well, I've solved the problem:

define module_include
    CURDIR := $(CURDIR)/$(1)
    $(if $(VPATH),VPATH := $(VPATH):$(CURDIR)/$(1),VPATH := $(CURDIR)/$(1))
    include $(CURDIR)/$(1)/module.mk
    CURDIR := $(CURDIR:%/$(notdir $(CURDIR))=%)
endef

Apparenty eval expands all variables and not the text as-is. The code above solves my problem. Are there any better ways?


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

Reply via email to