diff --git a/cc/BUILD b/cc/BUILD index 06b253f..9bf862a 100644 --- a/cc/BUILD +++ b/cc/BUILD @@ -45,6 +45,18 @@ filegroup( visibility = ["//visibility:public"], ) +filegroup( + name = "srcs", + srcs = glob([ + "**/*.bzl", + "**/BUILD", + ]) + [ + "//cc/private/rules_impl:srcs", + "//cc/private/toolchain:srcs", + ], + visibility = ["//visibility:public"], +) + # TODO(aiuto): Find a way to strip this rule from the distribution tarball. filegroup( name = "distribution", diff --git a/cc/private/rules_impl/BUILD b/cc/private/rules_impl/BUILD index 54eef46..37f326d 100644 --- a/cc/private/rules_impl/BUILD +++ b/cc/private/rules_impl/BUILD @@ -4,11 +4,8 @@ licenses(["notice"]) # Apache 2.0 filegroup( name = "srcs", - srcs = glob( - ["**"], - exclude = [ - ".*", - "*~", - ], - ), + srcs = glob([ + "**/*.bzl", + "**/BUILD", + ]), )