I found out there is a thread "optional prerequisite" in [email protected] on Aug 31, 2005 that says it cannot be done. I ended up doing this: $(NO_H_OBJ) =prog3.o prog4.o $(NO_H_OBJ): %.o %.c $(CC) -c $< -o $@ $(filter-out $(NO_H_OBJ), $(OBJ)): %.o: %.c %.h $(CC) -c $< -o $@ Still, is there a better way?
_______________________________________________ help-gnu-utils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnu-utils
