X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=285f813c5e4bad1482f04b89c5bb4379db604137;hb=29f0ca740297bf929d328b9f17a8ce36aff06e1f;hp=46610dd6d493de774276dab7ac759fa90684575b;hpb=7f8c770861ded4d335e8e390a5501fbcd614c339;p=vsys.git diff --git a/Makefile b/Makefile index 46610dd..285f813 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: vsys +all: vsys include .dep @@ -23,17 +23,27 @@ include .dep .mll.ml: ocamllex $< -vsys: inotify.cmxa inotify.cmi globals.cmx fdwatcher.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx backend.cmx main.cmx - 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 +docs: *.ml + ocamldoc -d . -html -o docs *.ml + mv *.html *.css docs -vsys.b: inotify.cma inotify.cmi globals.cmo fdwatcher.cmo dirwatcher.cmo fifowatcher.cmo frontend.cmo backend.cmo main.cmo - 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 +ocaml_inotify-0.4/inotify.cmxa: + $(MAKE) -C ocaml_inotify-0.4 && cp -f ocaml_inotify-0.4/inotify_stubs.o ./ + +vsys: ocaml_inotify-0.4/inotify.cmxa globals.cmx fdwatcher.cmx dirwatcher.cmx fifowatcher.cmx frontend.cmx backend.cmx main.cmx docs + ocamlopt -I ocaml_inotify-0.4 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.ml fdwatcher.ml dirwatcher.ml fifowatcher.ml frontend.ml backend.ml main.ml + ocamlc -g str.cma 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 clean: - rm -fR *.cmi *.cmx sys usys + $(MAKE) -C ocaml_inotify-0.4 clean + rm -f *.cmi *.cmx sys usys *.o vsys vsys.b *.html *.css docs/*