Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
77ce465b
Commit
77ce465b
authored
Apr 11, 2014
by
Stephane Glondu
Browse files
Add a rule for js_of_ocaml
parent
a34af7a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
myocamlbuild.ml
View file @
77ce465b
...
...
@@ -16,6 +16,8 @@ let atdgen_action opts env build =
let
d
=
Pathname
.
dirname
x
and
f
=
Pathname
.
basename
x
in
Cmd
(
S
[
A
"cd"
;
P
d
;
Sh
"&&"
;
A
"atdgen"
;
S
opts
;
P
f
])
let
js_of_ocaml
env
build
=
Cmd
(
S
[
A
"js_of_ocaml"
;
P
(
env
"%.byte"
)])
let
()
=
dispatch
&
function
...
...
@@ -41,6 +43,9 @@ let () = dispatch & function
(
atdgen_action
[
A
"-t"
]);
rule
"%.atd -> %_j.ml & %_j.mli"
~
deps
:
[
"%.atd"
]
~
prods
:
[
"%_j.ml"
;
"%_j.mli"
]
(
atdgen_action
[
A
"-j"
;
A
"-j-std"
]);
rule
"%.byte -> %.js"
~
deps
:
[
"%.byte"
]
~
prods
:
[
"%.js"
]
js_of_ocaml
;
rule
"%.md -> %.html"
~
deps
:
[
"%.md"
]
~
prods
:
[
"%.html"
]
(
fun
env
build
->
Cmd
(
S
[
A
"markdown"
;
P
(
env
"%.md"
);
Sh
">"
;
P
(
env
"%.html"
)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment