I want to have two different targets for the same project, but with different options. For example, if I have:
(executable (name example1) (preprocess (ppx ppx_sexp_conv)) (libraries core ctypes lwt) (link_flags (-verbose -linkall))
And you can build it with
dune build. But I want to be able also build a static binary with the same dune file, by adding
(flags (-ccopt -static)). Currently I just use
sed to insert them on the fly from my scripts, but is it possible to add some new target in the same dune file, so building it would work something like
dune build @static or so?