bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #19298] simplify automatic generation of prerequisites example


From: Michael P.
Subject: [bug #19298] simplify automatic generation of prerequisites example
Date: Mon, 03 Oct 2011 10:21:21 +0000
User-agent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.9.168 Version/11.51

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]