[PATCH] *.mk: Handle files with ':' in their pathnames

2023-04-25 Thread Alejandro Colomar
Since make(1) uses ':' as a special character in rules, it needs to be handled carefully. A way to make it work is to escape it with '\:'. We can use sed(1) to do that right when we get the pathnames. The only problem with ':' is in rules' targets and prerequisites: everywhere else it's fine; so

Colons in targets (and prerequisites)

2023-04-25 Thread Alejandro Colomar
Hi! I found a lot of manual pages have '::' in them, and would like to be able to work with them with Makefiles. I've been testing a little bit, and I think I got some consistent mental model of how GNU Make handles colons in pathnames. I'd like you to confirm if this is solid, and I can rely on

[bug #64107] -R and -r settings in MAKEFLAGS are delayed until build time

2023-04-25 Thread Dmitry Goncharov
Additional Item Attachment, bug #64107 (project make): File name: sv64107_fix.diff Size:4 KB File name: sv64107_test.diff Size:2 KB

[bug #64107] -R and -r settings in MAKEFLAGS are delayed until build time

2023-04-25 Thread Dmitry Goncharov
Follow-up Comment #1, bug #64107 (project make): $ ls makefile $ cat makefile $(info 0 CC=$(CC), $$(origin CC) = $(origin CC), makeflags = $(MAKEFLAGS)) MAKEFLAGS:=R $(info 1 CC=$(CC), $$(origin CC) = $(origin CC), makeflags = $(MAKEFLAGS)) CC ?= gcc $(info 2 CC=$(CC), $$(origin CC) = $(origin C

[bug #64107] -R and -r settings in MAKEFLAGS are delayed until build time

2023-04-25 Thread Dmitry Goncharov
URL: Summary: -R and -r settings in MAKEFLAGS are delayed until build time Group: make Submitter: dgoncharov Submitted: Tue 25 Apr 2023 11:40:58 AM UTC Severity: 3 - Normal