URL: <http://savannah.gnu.org/bugs/?28983>
Summary: forcing a target matching a pattern rule shadows the rule's actions Project: make Submitted by: ilgiz Submitted on: Mon 22 Feb 2010 03:35:05 PM EST Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.81 Operating System: MS Windows Fixed Release: None Triage Status: None _______________________________________________________ Details: With the makefile piece below I could get file.o only once. If I remove it from the file system, the .PHONY rule seems to shadow the pattern rule. I could not find a stipulation justifying this behavior in the GNU make documentation. Using a Cygwin build 3.81-2 here. ===================================================== default: file.o .PHONY: file.o file.c: echo Auto-generating "$@"... touch "$@" %.o: %.c echo Making "$@" from "$^"... touch "$@" ===================================================== $ make -f force-build-of-a-target-matching-a-pattern-rule.mak echo Auto-generating "file.c"... Auto-generating file.c... touch "file.c" echo Making "file.o" from "file.c"... Making file.o from file.c... touch "file.o" $ rm file.o $ make -f force-build-of-a-target-matching-a-pattern-rule.mak make: Nothing to be done for `default'. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?28983> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make