@@ -29,24 +29,13 @@ erlang_bytecode(
2929 "src/systemd_sup.erl",
3030 "src/systemd_watchdog.erl",
3131 ],
32- outs = [
33- "ebin/systemd.beam",
34- "ebin/systemd_app.beam",
35- "ebin/systemd_journal_h.beam",
36- "ebin/systemd_kmsg_formatter.beam",
37- "ebin/systemd_protocol.beam",
38- "ebin/systemd_socket.beam",
39- "ebin/systemd_sup.beam",
40- "ebin/systemd_watchdog.beam",
41- ],
42- hdrs = [
43- "include/systemd.hrl",
44- "src/systemd_internal.hrl",
45- ],
32+ hdrs = [":public_and_private_hdrs"],
4633 app_name = "systemd",
47- beam = [] ,
34+ dest = "ebin" ,
4835 erlc_opts = "//:erlc_opts",
49- deps = ["@enough//:erlang_app"],
36+ deps = [
37+ "@enough//:erlang_app",
38+ ],
5039)
5140
5241filegroup(
@@ -71,18 +60,19 @@ filegroup(
7160
7261filegroup(
7362 name = "private_hdrs",
74- srcs = ["src/systemd_internal.hrl"],
63+ srcs = [
64+ "src/systemd_internal.hrl",
65+ ],
7566)
7667
7768filegroup(
7869 name = "public_hdrs",
79- srcs = ["include/systemd.hrl"],
70+ srcs = [
71+ "include/systemd.hrl",
72+ ],
8073)
8174
82- filegroup(
83- name = "priv",
84- srcs = [],
85- )
75+ filegroup(name = "priv")
8676
8777filegroup(
8878 name = "licenses",
@@ -111,6 +101,8 @@ erlang_app(
111101 hdrs = [":public_hdrs"],
112102 app_name = "systemd",
113103 beam_files = [":beam_files"],
104+ license_files = [":license_files"],
105+ priv = [":priv"],
114106 deps = ["@enough//:erlang_app"],
115107)
116108
@@ -119,3 +111,10 @@ alias(
119111 actual = ":erlang_app",
120112 visibility = ["//visibility:public"],
121113)
114+
115+ filegroup(
116+ name = "license_files",
117+ srcs = [
118+ "LICENSE",
119+ ],
120+ )
0 commit comments