Hi, thanks for your hint. It works, but can i also use $? in a rule of the form:
$(OBJS_A) : %.o : %.c Best regards, Torsten. Here's the mail and the solution i refer to: > 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 $@ _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
