Installing files in another formula's keg #2619
-
I have a formula on a tap that builds an executable (~15min), then generates a whole bunch of documentation pages using the executable itself (~90min), and installs it all. Since the documentation is independent of the OS and architecture, I'd like to split this formula into an executable-only formula and a documentation-only formula. Is it possible for the documentation-only formula to install its files in the keg for the executable-only formula? Any suggestions about the implementation would be appreciated! Better yet, is it possible for one formula to create two bottles, one that is executable only and one that is architecture independent? I've seen a few formulas with architecture independent bottles (like eigen), but I can't tell how they are marked as being architecture independent. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured out a half solution, basically adding a I also tracked down the |
Beta Was this translation helpful? Give feedback.
I figured out a half solution, basically adding a
post_install
step that copies the documentation files over to another formula's keg.I also tracked down the
:all
bottle feature to Homebrew/brew#11077. Would be great to add a reference to this somewhere (was there a blog post I missed? it's hard to search for ":all"!) until there's better documentation.