Skip to content

tests: fix warnings about suffix rule prerequisites#719

Merged
westes merged 1 commit intowestes:masterfrom
Mightyjo:tests_suffix_fixup
Feb 20, 2026
Merged

tests: fix warnings about suffix rule prerequisites#719
westes merged 1 commit intowestes:masterfrom
Mightyjo:tests_suffix_fixup

Conversation

@Mightyjo
Copy link
Copy Markdown
Contributor

@Mightyjo Mightyjo commented Feb 8, 2026

This corrects a warning I introduced around 11 years ago.

GNU make ignores prerequisites on suffix rules. I tried to use prerequisites on the tests/ suffix rules to ensure top_builddir/src/flex was built first. That wasn't really working, but it looked like it was at the time.

More recently, make started emitting a warning about the lines I've changed below. The solution was to move the logic to pattern rules and just use the prefix-style rules to register the possible implicit constructions.

This conflicts with my PR that disables the Go tests. I'll rebase whichever comes second.

@westes westes merged commit a75d893 into westes:master Feb 20, 2026
3 checks passed
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