(rule (targets hash_host.ml) (enabled_if (= %{profile} dev)) (action (run cp hash_prod/hash_localhost.ml hash_host.ml))) (rule (targets hash_host.ml) (enabled_if (<> %{profile} dev)) (action (run cp hash_prod/hash_blog.ml hash_host.ml))) (library (name blog) (libraries brr brr.note elements ) (preprocess (pps ppx_hash)) )