URL: <https://savannah.gnu.org/bugs/?63516>
Summary: `include` of absolute path prepends path with `./` Project: make Submitter: None Submitted: Mon 12 Dec 2022 10:17:30 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.4 Operating System: MS Windows Fixed Release: None Triage Status: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Mon 12 Dec 2022 10:17:30 PM UTC By: Anonymous When trying to `include` a file with an absolute path (including drive path), the include directive prepends a `./` to the path, causing the `include` directive to fail. E.g. OUTPUT_DIR := $(abspath .) DEPS_FILE := $(OUTPUT_DIR)/makefile-deps.mk include $(DEPS_FILE) $(DEPS_FILE): $(CSRCS) $(OUTPUT_DIR) @echo MAKEDEPS @touch $@ outputs the following error: makefile:6: ./D:/Users/t0031450/Workspace/test/make/makefile-deps.mk: Invalid argument make: *** No rule to make target './D:/Users/t0031450/Workspace/test/make/makefile-deps.mk'. Stop. I've verified that the `DEPS_FILE` variable does not contain the `./` prefix, so it looks like it is prepended by the `include` directive itself. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63516> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/