|
From: | anonymous |
Subject: | [bug #51167] Pattern rule with no recipe fails |
Date: | Fri, 2 Jun 2017 17:48:45 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?51167> Summary: Pattern rule with no recipe fails Project: make Submitted by: None Submitted on: Fri 02 Jun 2017 09:48:43 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.1 Operating System: Any Fixed Release: None Triage Status: None _______________________________________________________ Details: It appears that pattern rules don't work at all if they don't have a body (recipe), even if they do have dependencies and thus aren't no-ops. $ echo 'foo-%:' >Makefile; make foo-x make: *** No rule to make target 'foo-x'. Stop. $ printf 'bar-%%:address@hidden bar $*\n\nfoo-%%: bar-%%\n' >Makefile; make bar-x; make foo-x bar x make: *** No rule to make target 'foo-x'. Stop. $ _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51167> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |