*** empty log message ***
[vsys.git] / Makefile
index 46610dd..1987754 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,14 +23,20 @@ include .dep
 .mll.ml:
        ocamllex $< 
 
-vsys: inotify.cmxa inotify.cmi globals.cmx fdwatcher.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx backend.cmx main.cmx
+docs: *.ml
+       ocamldoc -d . -html -o docs *.ml
+       mv *.html docs
+
+vsys: inotify.cmxa inotify.cmi globals.cmx fdwatcher.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx backend.cmx main.cmx docs
        ocamlopt str.cmxa unix.cmxa inotify.cmxa globals.cmx fdwatcher.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx backend.cmx str.cmxa main.cmx -o vsys
 
-vsys.b: inotify.cma inotify.cmi globals.cmo fdwatcher.cmo dirwatcher.cmo fifowatcher.cmo frontend.cmo backend.cmo main.cmo
+vsys.b: inotify.cma inotify.cmi globals.ml fdwatcher.ml dirwatcher.ml fifowatcher.ml frontend.ml backend.ml main.ml
        ocamlc -g str.cmxa unix.cma inotify.cma globals.cmo fdwatcher.cmo dirwatcher.cmo fifowatcher.cmo frontend.cmo backend.cmo str.cma main.cmo -o vsys.b
 
 install: vsys
        cp vsys /usr/bin
+       cp vsys.b /usr/bin
+       cp vsys-initscript /etc/init.d/vsys 
 
 dep:
        ocamldep *.ml > .dep