%% "Jörg" <[EMAIL PROTECTED]> writes: j> Currently every module is created as a library and has it's own j> makefile. Every module makefile expands the name and path of the j> library that it creates to a commonly used macro. The idea is that j> just by including the modules makefile the set of needed libraries j> is defined.
j> What I need now is a way to include these module makefiles target j> dependent. What about: MODULES = <list of modules> ifeq (foo,$(filter foo,$(MODULES))) include foo.mk endif ifeq (bar,$(filter bar,$(MODULES))) include bar.mk endif etc.? If you have a 1-1 relationship between modules and makefile names you can even just do this: MODULES = <list of modules> include $(MODULES:%=%.mk) You'll need to give some real details if you want better answers than that. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils