kse-01/tensorflow/third_party/pasta/build_defs.bzl
github-classroom[bot] 1122cdd8b0
Initial commit
2023-10-09 11:37:31 +00:00

12 lines
350 B (Stored with Git LFS)
Python

"""Skylark makros for building pasta."""
def copy_srcs(srcs):
"""Copies srcs from 'pasta' to parent directory."""
for src in srcs:
native.genrule(
name = src.replace(".", "_"),
srcs = ["pasta/" + src],
outs = [src],
cmd = "mkdir -p $$(dirname $@); cp $< $@",
)
return srcs