[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: |
Sun, 06 Oct 2013 02:34:50 +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 #12, bug #27609 (project make):
It's hard to diagnose problems based on general descriptions. Please provide
specific examples of what you did and what the result was.
However, it's definitely true that if you're relying on some of the built-in
rules then turning them all off with .SUFFIXES: will break that.
Please see the GNU make manual section on suffix rules. First, when defining
suffixes you add them one suffix at a time, not as a group (use ".o" and ".c",
not ".o.c", for example). Second, suffixes as .SUFFIXES: prerequisites only
_adds_ to the existing suffix list, it doesn't _replace_ the existing suffix
list.
If you're trying to keep only some of the rules then first you have to turn
them all off, then add back just the ones you want:
.SUFFIXES:
.SUFFIXES: .c .o
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27609>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/