updates to generate go-bin-data

This commit is contained in:
chrislovecnm 2017-10-22 23:19:08 -06:00
parent 8df13bd468
commit 4179c76513
2 changed files with 37 additions and 0 deletions

View File

@ -5,3 +5,18 @@ go_library(
srcs = ["bindata.go"],
visibility = ["//visibility:public"],
)
genrule(
name = "bindata",
srcs = glob(["*"], exclude=["bindata.go", "BUILD.bazel"]),
outs = ["bindata.go"],
cmd = """
$(location //vendor/github.com/jteeuwen/go-bindata/go-bindata:go-bindata) \
-o "$(OUTS)" -pkg model \
-prefix $$(pwd) \
-prefix federation/model $(SRCS)
""",
tools = [
"//vendor/github.com/jteeuwen/go-bindata/go-bindata",
],
)

View File

@ -12,3 +12,25 @@ go_library(
"//vendor/github.com/google/cadvisor/pages/static:go_default_library",
],
)
genrule(
name = "bindata",
srcs = glob(
["**"],
exclude = [
"bindata.go",
"vfs.go",
"BUILD.bazel",
],
),
outs = ["bindata.go"],
cmd = """
$(location //vendor/github.com/jteeuwen/go-bindata/go-bindata:go-bindata) \
-o "$(OUTS)" -pkg models \
-prefix $$(pwd) \
-prefix upup/models $(SRCS)
""",
tools = [
"//vendor/github.com/jteeuwen/go-bindata/go-bindata",
],
)