Follow-up Comment #3, bug #19298 (project make):
I would not discuss too much on this issue (4 years already!). The first
example works indep. of compiler used, second works for gcc.
The request is then to remove the given example in the manual and replace it
with:
--------------------------------
%.d : %.c
set -e;
@echo -n $@" " > $@
$(CC) $(CFLAGS) -MM $< >> $@
Using gcc as compiler, one can also use -MT and -MF:
%.d : %.c
$(CC) $(CFLAGS) -MM -MT $@ -MT $*.o -MF $@ $<
--------------------------------
For the rest, I would make another bug request. Afaik the section is very
clear, and I don't need to be convinced any further that it is useful.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?19298>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make