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

Run script phase when running make install #77

Closed
pkrmf opened this issue Apr 9, 2019 · 1 comment
Closed

Run script phase when running make install #77

pkrmf opened this issue Apr 9, 2019 · 1 comment

Comments

@pkrmf
Copy link

pkrmf commented Apr 9, 2019

Would it be possible to include an example on your sample project that runs make install and it executes a build phase run script?

I am trying to figure out the best way to execute a run script during make install or make build, but I don’t seem to find anytjing good out there.

@dfed
Copy link
Collaborator

dfed commented Apr 9, 2019

I think you're looking for a genrule. We have a couple examples of using genrules to execute scripts. These genrules execute during buck project, buck build, and buck test.

We also have a Xcode-specific prebuild and postbuild script examples. Though these only run during Xcode builds, not during buck commands.

I'm closing this issue, as I think we already have what you're looking for. Please let me know if I've misunderstood!

@dfed dfed closed this as completed Apr 9, 2019
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

No branches or pull requests

2 participants