2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-27 02:43:28 +00:00
rules_foreign_cc/examples/third_party/autotools/BUILD.libtool.bazel
UebelAndre aa61b9ad8b
Minor cleanup for examples (#835)
* Remove `BUILD` files from source globs in examples

* Updated example urls
2021-12-30 16:37:31 +00:00

32 lines
684 B
Plaintext

load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "all_srcs",
srcs = glob(
include = ["**"],
exclude = ["*.bazel"],
),
)
configure_make(
name = "libtool",
build_data = [
"@m4",
],
env = select({
"@platforms//os:macos": {
"AR": "",
"M4": "$$EXT_BUILD_DEPS$$/bin/m4/bin/m4",
},
"//conditions:default": {"M4": "$$EXT_BUILD_DEPS$$/bin/m4/bin/m4"},
}),
install_prefix = "install",
lib_source = ":all_srcs",
out_binaries = [
"libtool",
],
out_data_dirs = ["share"],
)