URL: <https://savannah.gnu.org/bugs/?62356>
Summary: Setting -R through MAKEFLAGS should set -r. Project: make Submitted by: dgoncharov Submitted on: Sat 23 Apr 2022 02:11:17 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: SCM Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: Setting -R through MAKEFLAGS should set -r, just like -R on the command line sets -r. ++++ $ cat makefile MAKEFLAGS:=-R all: hello.o $ make --debug=implicit 2>&1 |tail -10 Trying implicit prerequisite 'RCS/hello.mod,v'. Trying pattern rule with stem 'hello.mod'. Trying implicit prerequisite 'RCS/hello.mod'. Trying pattern rule with stem 'hello.mod'. Trying implicit prerequisite 's.hello.mod'. Trying pattern rule with stem 'hello.mod'. Trying implicit prerequisite 'SCCS/s.hello.mod'. No implicit rule found for 'hello.o'. Must remake target 'hello.o'. make: *** No rule to make target 'hello.o', needed by 'all'. Stop. $ ---- Same example with this patch. ++++ $ make --debug=implicit 2>&1 |tail -10 Updating makefiles.... Updating goal targets.... File 'all' does not exist. Looking for an implicit rule for 'all'. No implicit rule found for 'all'. File 'hello.o' does not exist. Looking for an implicit rule for 'hello.o'. No implicit rule found for 'hello.o'. Must remake target 'hello.o'. make: *** No rule to make target 'hello.o', needed by 'all'. Stop. $ ---- _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?62356> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/