]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/uwobo/Makefile
ocaml 3.09 transition
[helm.git] / helm / uwobo / Makefile
index 9af1575f9d880400326b47c91aada2964c87e854..00b578aca1add15e7366fddb55eef5d335dae969 100644 (file)
@@ -1,6 +1,7 @@
-VERSION = 0.2.0
+VERSION = 0.3.0
 DISTDIR = uwobo-$(VERSION)
-REQUIRES = http gdome2 gdome2-xslt pcre unix
+DISTTARBALL = $(DISTDIR).tar.gz
+REQUIRES = http gdome2 gdome2-xslt pcre unix helm-registry
 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
 OCAMLFIND = ocamlfind
 OCAMLC = $(OCAMLFIND) ocamlc $(COMMONOPTS)
@@ -13,7 +14,7 @@ OCAMLDOC =    \
                $(shell $(OCAMLFIND) query -i-format gdome2-xslt)       \
                $(shell $(OCAMLFIND) query -i-format pcre)      \
                $(shell $(OCAMLFIND) query -i-format unix)
-MODULES = uwobo_common uwobo_styles uwobo_logger uwobo_engine
+MODULES = uwobo_common uwobo_styles uwobo_profiles uwobo_logger uwobo_engine
 OBJS = $(patsubst %,%.cmo,$(MODULES))
 OBJSOPT = $(patsubst %,%.cmx,$(MODULES))
 
@@ -55,8 +56,13 @@ dist: distclean depend
                uwobo.ml        \
                Makefile .depend        \
                $(DISTDIR)/
-       tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
+       tar cvzf $(DISTTARBALL) $(DISTDIR)/
        rm -rf $(DISTDIR)/
+distcheck: $(DISTTARBALL)
+       if [ -d $(DISTDIR) ]; then rm -rf $(DISTDIR); else true; fi
+       tar xvzf $<
+       cd $(DISTDIR); make
+       rm -rf $(DISTDIR)
 
-.PHONY: all byte opt world depend clean
+.PHONY: all dist distclean distcheck byte opt world depend clean