]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/Makefile.in
- added integrity checks on .moo files
[helm.git] / helm / matita / Makefile.in
index a519950b0f1b94cb90530e23aaf1d9bc7518280e..301eb2efcf1bb42f814b1fd2c25da2cd5ca0cc2e 100644 (file)
@@ -26,6 +26,7 @@ CMOS =                                \
        buildTimeConf.cmo       \
        matitaLog.cmo           \
        matitaTypes.cmo         \
+       matitaMoo.cmo           \
        matitaExcPp.cmo         \
        matitaMisc.cmo          \
        matitaDb.cmo            \
@@ -47,6 +48,7 @@ CCMOS =                               \
        buildTimeConf.cmo       \
        matitaLog.cmo           \
        matitaTypes.cmo         \
+       matitaMoo.cmo           \
        matitaExcPp.cmo         \
        matitaMisc.cmo          \
        matitaDb.cmo            \
@@ -60,8 +62,10 @@ CCMOS =                              \
        $(NULL)
 CLEANCMOS = $(CCMOS)
 MAKECMOS = $(CCMOS) 
+PROGRAMS = matita matitac matitatop cicbrowser matitadep matitaclean matitamake
+PROGRAMS_OPT = $(patsubst %,%.opt,$(PROGRAMS))
 
-all: matita.conf.xml matita matitac matitatop cicbrowser matitadep matitaclean matitamake
+all: matita.conf.xml $(PROGRAMS) dump_moo
 
 matita.conf.xml: matita.conf.xml.sample
        @if diff matita.conf.xml.sample matita.conf.xml 1>/dev/null 2>/dev/null; then\
@@ -98,7 +102,7 @@ CLEANLIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -forma
 CLEANLIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(CLEANREQUIRES))
 MAKELIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(MAKEREQUIRES))
 MAKELIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(MAKEREQUIRES))
-opt: matita.opt matitac.opt cicbrowser.opt matitadep.opt matitaclean.opt matitamake.opt
+opt: $(PROGRAMS_OPT)
 else
 opt:
        @echo "Native code compilation is disabled"
@@ -109,6 +113,9 @@ matita: $(LIB_DEPS) $(CMOS) matita.ml
 matita.opt: $(LIBX_DEPS) $(CMXS) matita.ml
        $(OCAMLOPT) $(PKGS) -linkpkg -o $@ $(CMXS) matita.ml
 
+dump_moo: buildTimeConf.cmo matitaLog.cmo matitaMoo.cmo dump_moo.ml
+       $(OCAMLC) $(PKGS) -linkpkg -o $@ $^
+
 matitac: $(CLIB_DEPS) $(CCMOS) matitac.ml
        $(OCAMLC) $(CPKGS) -linkpkg -o $@ $(CCMOS) matitac.ml
 matitac.opt: $(CLIBX_DEPS) $(CCMXS) matitac.ml
@@ -157,7 +164,8 @@ clean:
                matitadep matitadep.opt \
                matitaclean matitaclean.opt \
                matitamake matitamake.opt \
-               matitatop matitatop.opt
+               matitatop matitatop.opt \
+               dump_moo
 distclean: clean
        rm -f matitaGeneratedGui.ml matitaGeneratedGui.mli
        rm -f config.log config.status Makefile buildTimeConf.ml