tiny-httpd example
This commit is contained in:
parent
fc4b8f5b8f
commit
709718f802
6 changed files with 77 additions and 14 deletions
|
|
@ -1,5 +1,21 @@
|
|||
(executable
|
||||
(name main)
|
||||
(modules main)
|
||||
(name runweb)
|
||||
(modules runweb content)
|
||||
(libraries tiny_httpd))
|
||||
|
||||
(executable
|
||||
(name script)
|
||||
(modules script)
|
||||
(libraries js_of_ocaml brr gadgetobrr)
|
||||
(modes js))
|
||||
|
||||
(rule
|
||||
(target content.ml)
|
||||
(deps
|
||||
(file content/index.html)
|
||||
(file content/style.css)
|
||||
(file content/script.js))
|
||||
(action
|
||||
(with-stdout-to
|
||||
%{null}
|
||||
(run ocaml-crunch -m plain content -o %{target}))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue