URL: <http://savannah.gnu.org/bugs/?33399>
Summary: Double-colon rules sometimes behave like if they were single-colon Project: make Submitted by: None Submitted on: Срд 25 Май 2011 11:47:05 Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.82 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: When target of double-colon rule have characters escaped by backslashes, make doesn't mark this rule as double-colon. Simplest example of makefile illustrating the problem is: a\ b :: ; @echo one a\ b :: ; @echo two Output of _make 'a b'_: Makefile:2: warning: overriding recipe for target `a b' Makefile:1: warning: ignoring old recipe for target `a b' two While the expected output is: one two I'm using GNU Make 3.82 on Gentoo x86_64. Make built from the latest CVS also has this issue. After examining the source I made a trivial patch (attached) which fixes this problem (tested on few projects and as far as I can see it doesn't break anything). _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Срд 25 Май 2011 11:47:05 Name: double-colon.patch Size: 339B By: None <http://savannah.gnu.org/bugs/download.php?file_id=23449> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33399> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make