This commit is contained in:
parent
3542a7ad3e
commit
e067e0bd82
1 changed files with 15 additions and 4 deletions
19
src/dune
19
src/dune
|
|
@ -34,11 +34,22 @@
|
|||
(modules b32)
|
||||
(libraries base32))
|
||||
|
||||
;(rule
|
||||
; (target assets_crunch.ml)
|
||||
; (deps
|
||||
; (source_tree ../assets))
|
||||
; (action
|
||||
; (with-stdout-to
|
||||
; %{null}
|
||||
; (run ocaml-crunch -m plain ../assets -o %{target}))))
|
||||
|
||||
(rule
|
||||
(target assets_crunch.ml)
|
||||
(deps
|
||||
(source_tree ../assets))
|
||||
(source_tree ../assets)
|
||||
(source_tree ../default/assets))
|
||||
(action
|
||||
(with-stdout-to
|
||||
%{null}
|
||||
(run ocaml-crunch -m plain ../assets -o %{target}))))
|
||||
(run
|
||||
sh
|
||||
-c
|
||||
"\nif [[ -d ../assets ]]; then ocaml-crunch -m plain ../assets -o assets_crunch.ml; else ocaml-crunch -m plain ../default/assets -o assets_crunch.ml; fi")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue