]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/http_getter/Makefile
Branch V7_3_new_exportation merged.
[helm.git] / helm / http_getter / Makefile
index 6584bda68bc90559ba15a9fc0a2ca643197db200..be5ff627fdd80c2e205ba513a3241e350661dba8 100644 (file)
@@ -1,6 +1,10 @@
 VERSION = 0.2.1
 NAME = http_getter
+
 DISTDIR = http-getter-$(VERSION)
+EXTRA_DIST = AUTHORS COPYING NEWS README BUGS
+DOCS = doc/http_getter.conf.xml.sample
+
 REQUIRES = http dbm pcre netclient pxp shell threads zip
 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
 OCAMLFIND = ocamlfind
@@ -18,9 +22,9 @@ OCAMLDOC =    \
                $(shell $(OCAMLFIND) query -i-format threads)   \
                $(shell $(OCAMLFIND) query -i-format zip)
 MODULES =      \
-       http_getter_debugger threadSafe                                                 \
-       http_getter_types http_getter_misc http_getter_const    \
-       http_getter_env http_getter_common http_getter_map              \
+       http_getter_debugger threadSafe                                                         \
+       http_getter_types zack http_getter_misc http_getter_const       \
+       http_getter_env http_getter_common http_getter_map                      \
        http_getter_cache
 
 OBJS = $(patsubst %,%.cmo,$(MODULES))
@@ -60,6 +64,8 @@ clean:
 dist: distclean depend
        if [ -d $(DISTDIR) ]; then rm -rf $(DISTDIR); else true; fi
        mkdir $(DISTDIR)/
+       mkdir $(DISTDIR)/doc
+       cp $(DOCS) $(DISTDIR)/doc/
        for m in $(patsubst %, %.mli, $(MODULES)); do   \
                if [ "$$m" != "http_getter_types.mli" ]; then   \
                        cp $$m $(DISTDIR)/;     \
@@ -70,6 +76,7 @@ dist: distclean depend
                $(NAME).ml      \
                Makefile Makefile.overrides .depend     \
                $(DISTDIR)/
+       cp $(EXTRA_DIST) $(DISTDIR)/
        tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
        rm -rf $(DISTDIR)/
 distcheck: dist