Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gmake 4.4 "pattern recipe did not update peer target" warnings #2305

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

daviesrob
Copy link
Member

Due to an upcoming change in how GNU make will handle pattern rules with multiple targets, GNU make 4.4 warns when pattern recipes don't update all targets listed. See https://lists.gnu.org/archive/html/help-make/2022-10/msg00020.html for more information.

Such a case existed in bcftools' Makefile in a rule intended to make either .dll or .cygdll targets depending on the value of the PLUGIN_EXT variable. As PLUGIN_EXT could also be .so (handled by another rule) the easiest solution is to spilt the single rule into two, each having a single pattern target.

Due to an upcoming change in how GNU make will handle pattern
rules with multiple targets, GNU make 4.4 warns when pattern
recipies don't update all targets listed.  See
https://lists.gnu.org/archive/html/help-make/2022-10/msg00020.html
for more information.

Such a case existed in bcftools' Makefile in a rule intended to
make either .dll or .cygdll targets depending on the value of
the PLUGIN_EXT variable.  As PLUGIN_EXT could also be .so (handled
by another rule) the easiest solution is to spilt the single rule
into two, each having a single pattern target.
@pd3 pd3 merged commit 4f8bf53 into samtools:develop Oct 22, 2024
8 checks passed
@pd3
Copy link
Member

pd3 commented Oct 22, 2024

Thank you

@daviesrob daviesrob deleted the make-peer-targets branch October 22, 2024 08:45
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