Page MenuHomeFreeBSD

Move extra suffix-transformation rules into bsd.suffixes-extra.mk
ClosedPublic

Authored by dim on Apr 22 2025, 6:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 4:16 AM
Unknown Object (File)
Wed, Sep 24, 2:14 AM
Unknown Object (File)
Mon, Sep 22, 10:59 PM
Unknown Object (File)
Mon, Sep 22, 5:20 AM
Unknown Object (File)
Sep 15 2025, 6:28 PM
Unknown Object (File)
Sep 5 2025, 2:53 PM
Unknown Object (File)
Aug 26 2025, 6:14 AM
Unknown Object (File)
Aug 25 2025, 4:32 AM

Details

Summary

To make it possible to use .SUFFIXES list and suffix-transformation
rules from bsd.lib.mk in other places, move them to a separate file,
bsd.suffixes-extra.mk.

Note that we cannot add the list and rules to bsd.suffixes.mk, since
that file also gets included by sys.mk, which applies to non-source
builds. That would require a whole ports exp-run.

No functional change intended.

NOTE: split off from D49962.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dim requested review of this revision.Apr 22 2025, 6:31 PM

I got my bikeshedding out of the way on other reviews so will reserve comment on the filename :)

This revision is now accepted and ready to land.Apr 22 2025, 6:44 PM

I got my bikeshedding out of the way on other reviews so will reserve comment on the filename :)

Yeah, it can't be bsd.suffixes.mk since that's already taken, and there is already a bsd.suffixes-posix.mk. I didn't have too much inspiration so bsd.suffixes-extra.mk seemed reasonable enough. I don't think there will be much need for _more_ of these bsd.suffixes files, at least I hope so!