Andrew <[EMAIL PROTECTED]> wrote on 09/28/05 at 18:31: > %.exe: %.o > $(CC) -o $@ $^
> Subsequently in the same makefile, I would like to add lib.o as a > dependency to every .exe file in this directory, which one would think > I could do by saying > %.exe: lib.o > This doesn't work because it overrides the previous rule. Have you tried wildcard expansions? If foo.exe exists and is older than lib.o, this works as expected: $(wildcard *.exe): lib.o echo success _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils