[New-bugs-announce] [issue41657] Refactor for object source files variable in Makefile
Elian Mariano Gabriel
report at bugs.python.org
Fri Aug 28 14:58:28 EDT 2020
New submission from Elian Mariano Gabriel <elianmarianogabriel at gmail.com>:
Refactoring in the Makefile is needed due a hard coded declaration to the 'OBJECT_OBJS' variable in the line 388.
This hard coded declaration can be replaced by a pattern substitution function which assigns the 'OBJECT_OBJS' variable in this much simpler way:
OBJECT_OBJS=$(patsubst %.c, %.o, $(wildcard Objects/*.c))
This assignment will facilitate the future builds because it is not need to add a new obj reference when created a new source code inside the 'Objects' folder.
title: Refactor for object source files variable in Makefile
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce