(library
 (name lib)
 (public_name lib)
 (libraries yojson atdgen-runtime))

(rule
 (targets message_t.ml
          message_t.mli)
 (deps    message.atd)
 (action  (run atdgen -t %{deps})))

(rule
 (targets message_j.ml
          message_j.mli)
 (deps    message.atd)
 (action  (run atdgen -j %{deps})))
