|
From: | Ilguiz Latypov |
Subject: | [bug #28983] forcing a target matching a pattern rule shadows the rule's actions |
Date: | Mon, 22 Feb 2010 20:35:08 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9pre) Gecko/20100219 Shiretoko/3.5.9pre |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |