top | item 35474327

(no title)

ndmitchell | 2 years ago

There's no such thing as a phony target, but there is both `buck2 build` and `buck2 run` - each target can say how to run and how to build it separately. So you can have a shell script in the repo, write an export_file rule for it, then do `buck2 run :my_script` and it will run.

discuss

order

0cf8612b2e1e|2 years ago

Nuts. Possible, but I would be fighting the platform a bit. Especially if I might want something like phony1 to depends on phony2.

mkl|2 years ago

What kinds of things are you using phony targets for?