X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=a79ff35674e0fc53c1f5ee0a21a53815d42d44ff;hb=6bd258a9272b5e6d89cde3aa79c37783f4c0eb2b;hp=b5272ca7f20023ba58b49256428a18c0d28ed951;hpb=a94e10d8cdc92ed752ad71888e13bb8ce9d42925;p=vsys.git diff --git a/Makefile b/Makefile index b5272ca..a79ff35 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: vsys +all: vsys factory/.done include .dep @@ -39,13 +39,18 @@ vsys: ocaml_inotify-0.4/inotify.cmxa globals.cmx fdwatcher.cmx conffile.cmx spli vsys.b: ocaml_inotify-0.4/inotify.cma inotify.cmi globals.ml fdwatcher.ml dirwatcher.ml directfifowatcher.ml frontend.ml backend.ml main.ml ocamlc -g str.cma unix.cma ocaml_inotify-0.4/inotify.cma globals.cmo fdwatcher.cmo dirwatcher.cmo directfifowatcher.cmo frontend.cmo backend.cmo str.cma conffile.cmo main.cmo -o vsys.b -install: vsys +factory/.done: factory/* + $(MAKE) -C factory/ + +install: vsys factory/.done cp vsys $(INSTALL_DIR)/usr/bin cp vsys-initscript $(INSTALL_DIR)/etc/init.d/vsys + cp -fR factory/ factory-exec/ dep: ocamldep *.ml > .dep clean: $(MAKE) -C ocaml_inotify-0.4 clean + $(MAKE) -C factory clean rm -f *.cmi *.cmx sys usys *.o vsys vsys.b *.html *.css