bug-make
[Top][All Lists]
Advanced

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

[bug #27609] Stupid inference rule for yacc files can clobber C sources!


From: Paul D. Smith
Subject: [bug #27609] Stupid inference rule for yacc files can clobber C sources!
Date: Sat, 05 Oct 2013 22:18:52 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36

Follow-up Comment #10, bug #27609 (project make):

Yes, both .y.c and .l.c suffix rules are required by the POSIX standard. 
However, they've been present in GNU make for over 20 years, since before
POSIX standardized make, so while POSIX requirements are one reason to keep
them, their existence cannot be blamed on POSIX.

I recommend getting into the habit of adding a ".SUFFIXES:" target to your
makefiles to disable the built-in suffix rules, so that the worst that can
happen if your rules fail to apply for some reason is that make complains it
doesn't know how to build the target.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27609>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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