-
Notifications
You must be signed in to change notification settings - Fork 25
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
feature: abbreviated qualified path to phony targets #133
Comments
Are you aware that
|
Yes! I am, in fact, suggesting it would be nice to have a more compact syntax for referencing I suppose it would be fair to think about this feature request in the context of looking at all the innovative features of Bazel (and its cognates, e.g. Buck, Pants, Please, et cetera), and coming up with new features of OMake to make it better compare with those tools. |
Having a strong (GNU-) Make background, I see % omake --output-normal -s a/do_it Wrt to the second part of your suggestion, @jhwoodyatt, I'd even extend its reach: what if My preferred syntax would be close to shell globs, not regexps, though. $ omake 'test/suite-{alpha,production}' # build test/suite-alpha and
# test/suite-production
$ omake 'test/suite-alpha/semantics4[0-9][0-9].log' # build (test-)log files in the
# "alpha" suite which are in the 400-group of semantics tests |
Sure. That works for me. The target expansion that Bazel provides is really really limited. Wouldn't take much to do better. |
In my day job, we are using Bazel for software construction. (It's a living, shrug.)
One thing Bazel offers that I miss when I'm using OMake is the hierarchical structure of target names, and I've been thinking about what it would take to extend OMake to be more like Bazel in this regard. I think I've got an idea...
OMake today has
.PHONY
targets that are almost but not quite the right thing. To make them more friendly, it would be nice if there were a bit of reserved syntax for targets that expanded automatically to hierarchical "phony target" names in the same way that Bazel target names have a hierarchical structure.I don't have a strong preference for a specific proposal for how that syntax would work, but I could throw one up if it would help:
^/
would have the^
replaced with/.PHONY
. Example:$ omake ^/foo/bar/baz
at the root directory would be equivalent to$ (cd foo/bar && omake baz)
.:
would have the part of the suffix following the:
interpreted as a regular expression that matches targets in the/.PHONY/
namespace corresponding to their relative location. Example:$ omake ':test-.+'
would invoke all the phony targets in the current subdirectory tree that match thetest-.+
regex.One could also imagine some logic that provide for handling the combination of both the above the rules in a way that would seem familiar to Bazel users.
The text was updated successfully, but these errors were encountered: