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-%%:\n\t@echo 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/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make