]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/getter/Makefile
- use PxpHelmConf
[helm.git] / helm / ocaml / getter / Makefile
index 686b2ddd33a904eee3496a4d17002692b84e3468..99529c2d4595d7e446deef39d3bd336956ff5f65 100644 (file)
@@ -1,36 +1,27 @@
-BIN_DIR = /usr/local/bin
-REQUIRES = pxp netclient helm-urimanager pxp netclient
-PREDICATES =
-OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
-OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
-OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
-OCAMLDEP = ocamldep
 
-all: clientHTTP.cmo getter.cmo configuration.cmo
-opt: clientHTTP.cmx getter.cmx configuration.cmx
+PACKAGE = getter
 
-DEPOBJS = clientHTTP.mli clientHTTP.ml getter.mli getter.ml configuration.ml
+REQUIRES = \
+       http dbm pcre shell zip \
+       helm-pxp helm-thread helm-logger helm-urimanager helm-registry
 
-depend:
-       $(OCAMLDEP) $(DEPOBJS) > .depend
+INTERFACE_FILES = \
+       clientHTTP.mli \
+       http_getter_logger.mli \
+       http_getter_misc.mli \
+       http_getter_const.mli \
+       http_getter_env.mli \
+       http_getter_common.mli \
+       http_getter_map.mli \
+       http_getter_cache.mli \
+       http_getter.mli
 
-.SUFFIXES: .ml .mli .cmo .cmi .cmx
-.ml.cmo:
-       $(OCAMLC) -c $<
-.mli.cmi:
-       $(OCAMLC) -c $<
-.ml.cmx:
-       $(OCAMLOPT) -c $<
+IMPLEMENTATION_FILES = \
+       http_getter_types.ml \
+       $(INTERFACE_FILES:%.mli=%.ml)
 
-clean:
-       rm -f *.cm[iox]
+include ../Makefile.common
 
-install:
-       #cp
+test: getter.cma test.ml
+       $(OCAMLC) -linkpkg -o $@ $^
 
-uninstall:
-       #rm -f
-
-.PHONY: install uninstall clean
-
-include .depend