Commit 4ef65a3d authored by Kim Nguyễn's avatar Kim Nguyễn
Browse files

Add a rule to generate the website.

parent 90d9a178
......@@ -31,7 +31,6 @@
(>= %{ocaml_version} 4.10)))
(rule
(deps)
(target version.ml)
(action
(write-file
......
(rule
(alias website)
(deps
%{bin:cduce}
site.cdo
(glob_files *.xml)
(glob_files manual/*.xml)
(glob_files tutorial/*.xml))
(targets)
(action
(progn
(system "mkdir doc")
(run %{bin:cduce} --run site.cdo --arg doc.xml -o doc)
)))
(rule
(deps site.cd siteTypes.cdo xhtml.cdo)
(target site.cdo)
(action
(run %{bin:cduce} --compile site.cd)))
(rule
(deps siteTypes.cd xhtml.cdo)
(target siteTypes.cdo)
(action
(run %{bin:cduce} --compile siteTypes.cd)))
(rule
(deps
(glob_files xhtml*.cd))
(target xhtml.cdo)
(action
(run %{bin:cduce} --compile xhtml.cd)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment