%% Torsten Mohr <[EMAIL PROTECTED]> writes:

  tm> SRC := a.c b.c c.c d.c
  tm> OBJ := a.o b.o c.o d.o

  tm> %.o : %.c
  tm>   compiler -o $@ -c $<

  tm> With the small example above, "make" calls the compiler for
  tm> each target that is not up to date or does not exist.

  tm> Is it possible to formulate a rule to hand _all_ the targets
  tm> that are not up to date to the compiler?

Yes, but it's not necessarily pretty:

    all: .allobjs

    .allobjs: $(SRC)
            compiler -c $?
            @touch $@

-- 
-------------------------------------------------------------------------------
 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://lists.gnu.org/mailman/listinfo/help-make

Reply via email to