Skip to content

Commit

Permalink
Also build the examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drup committed Apr 11, 2018
1 parent daad1ac commit 04d75d3
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/basic_website/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(jbuild_version 1)
(executable
((name site_html)
(libraries (tyxml))
))
(rule
((targets (index.html))
(deps (site_html.exe))
(action (run ${exe:site_html.exe}))
))

12 changes: 12 additions & 0 deletions examples/basic_website_ppx/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(jbuild_version 1)
(executable
((name site_html)
(libraries (tyxml))
(preprocess (pps (tyxml-ppx)))
))
(rule
((targets (index.html))
(deps (site_html.exe))
(action (run ${exe:site_html.exe}))
))

13 changes: 13 additions & 0 deletions examples/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(jbuild_version 1)


(alias
((name runtest)
(deps (
mini_website/index.html
mini_website_ppx/index.html
basic_website/index.html
basic_website_ppx/index.html
))
))

11 changes: 11 additions & 0 deletions examples/mini_website/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(jbuild_version 1)
(executable
((name minihtml)
(libraries (tyxml))
))
(rule
((targets (index.html))
(deps (minihtml.exe))
(action (run ${exe:minihtml.exe}))
))

12 changes: 12 additions & 0 deletions examples/mini_website_ppx/jbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(jbuild_version 1)
(executable
((name minihtml)
(libraries (tyxml))
(preprocess (pps (tyxml-ppx)))
))
(rule
((targets (index.html))
(deps (minihtml.exe))
(action (run ${exe:minihtml.exe}))
))

0 comments on commit 04d75d3

Please sign in to comment.