31 lines
575 B
Plaintext
31 lines
575 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 = "m4",
|
|
env = select({
|
|
"@platforms//os:macos": {"AR": ""},
|
|
"//conditions:default": {},
|
|
}),
|
|
lib_source = ":all_srcs",
|
|
out_binaries = [
|
|
"m4",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "m4_exe",
|
|
srcs = [":m4"],
|
|
output_group = "m4",
|
|
visibility = ["//visibility:public"],
|
|
)
|