%% Noel Yap <[EMAIL PROTECTED]> writes:

  ny> David Wuertele wrote:

  >> I have set up a system where my developers can make simple makefiles
  >> like this:
  >> 
  >> PROGRAMS = myprogram
  >> myprogram_OBJ = one.o two.o three.o
  >> 
  >> PROGRAMS += herprogram
  >> herprogram_OBJ = two.o three.o four.o
  >> 
  >> include ../../davesrules.mk

  ny> What about the possibly-not-so-obvious use of $(foreach) and $(eval)?

Yep.  I actually have a build system that looks very similar to this,
done completely with eval instead of include.

Someday I'll clean it up and get it on my web site...

-- 
-------------------------------------------------------------------------------
 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-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to