Skip to content

py/mkrules.mk: Allow PROG to be set on the command line for .exe targets.#39

Draft
andrewleech wants to merge 1 commit intomasterfrom
pr/mkrules-exe-fix
Draft

py/mkrules.mk: Allow PROG to be set on the command line for .exe targets.#39
andrewleech wants to merge 1 commit intomasterfrom
pr/mkrules-exe-fix

Conversation

@andrewleech
Copy link
Copy Markdown
Owner

Summary

When PROG is given on the make command line (e.g. PROG=pydfu) the existing mingw .exe-suffix rule has no effect because command-line variables override Makefile assignments. Wraps the assignment in override so the suffix is still applied.

Without this, mingw builds invoked with PROG=foo produce foo but the build rules still expect foo.exe.

Testing

Unix mingw build with and without PROG=...; non-mingw builds (no change).

…ets.

When PROG is provided on the make command line (e.g. PROG=pydfu), the
existing .exe-suffix rule for mingw targets has no effect because
command-line variables override Makefile assignments. Use 'override' so
the .exe suffix is still applied in this case.

Without this, mingw builds invoked with PROG=foo produce 'foo' but the
build rules still expect 'foo.exe', leading to spurious rebuilds and
missing artifacts.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants