How to create a target base depends on all targets inside another BUILD file
1 answer
You can create a macro that will go through all the existing rules in the BUILD file and create a filegroup for it. Another BUILD file will depend on this filegroup.
bazel docs has a stub example that finds all cc_library rules and concatenates them together.
+5
source to share