(include dune.inc)

(rule
 (action
  (with-stdout-to
   dune.inc.gen
   (run ./gen_dune.exe))))

(rule
 (alias runtest)
 (action
  (diff dune.inc dune.inc.gen)))

(executable
 (name main)
 (libraries js_of_ocaml num str)
 (link_flags
  (:standard -linkall))
 (modules main)
 (modes byte))

(executable
 (name unix)
 (libraries js_of_ocaml num str unix)
 (link_flags
  (:standard -linkall))
 (modules unix)
 (modes byte))

(executable
 (name gen_dune)
 (modules gen_dune))
