]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/Makefile.in
matita.conf.xml.sample is now generated
[helm.git] / helm / matita / Makefile.in
index 9b26d4d08bf61cc51d49113af961b9adc04654c0..4c3d9f305920bf1e76b2e2c3968b27e6d86951e9 100644 (file)
@@ -29,13 +29,15 @@ CMOS =                              \
        matitaMisc.cmo          \
        matitaDb.cmo            \
        matitaSync.cmo          \
+       matitacleanLib.cmo \
        matitaDisambiguator.cmo \
        matitaEngine.cmo        \
+       matitacLib.cmo \
        matitaScript.cmo        \
        matitaGeneratedGui.cmo  \
        matitaGtkMisc.cmo       \
        matitaGui.cmo           \
-       matitaMathView.cmo
+       matitaMathView.cmo 
 # objects for matitac (batch compiler)
 CCMOS =                                \
        buildTimeConf.cmo       \
@@ -47,17 +49,33 @@ CCMOS =                             \
        matitaSync.cmo          \
        matitaDisambiguator.cmo \
        matitaEngine.cmo        \
+       matitacleanLib.cmo      \
        matitacLib.cmo
+CLEANCMOS = $(CCMOS)
 
 
-all: matita matitac matitatop cicbrowser matitadep matitaclean
+all: matita.conf.xml matita matitac matitatop cicbrowser matitadep matitaclean
 
-updater: $(LIB_DEPS)
-       $(OCAMLC) $(PKGS) -linkpkg -o $@ updater.ml
+matita.conf.xml: matita.conf.xml.sample
+       @echo
+       @echo "matita.conf.xml.sample is newer than matita.conf.xml"
+       @echo
+       @echo "PLEASE update your configuration file!"
+       @echo "(copying matita.conf.xml.sample should work)"
+       @echo
+       @false
+
+matita.conf.xml.sample: matita.conf.xml.sample.in
+       autoconf
+       ./configure
+       @echo 
+       @echo "WARNING: The configuration sample file has changed!"
+       @echo 
 
 ifeq ($(HAVE_OCAMLOPT),yes)
 CMXS = $(patsubst %.cmo,%.cmx,$(CMOS))
 CCMXS = $(patsubst %.cmo,%.cmx,$(CCMOS))
+CLEANCMXS = $(patsubst %.cmo,%.cmx,$(CLEANCMOS))
 LIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES))
 LIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES))
 CLIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(CREQUIRES))
@@ -90,10 +108,10 @@ matitadep: matitadep.ml $(DEPLIB_DEPS) $(CCMOS)
 matitadep.opt: matitadep.ml $(DEPLIB_DEPS) $(CCMXS)
        $(OCAMLOPT) $(DEPPKGS) -linkpkg -o $@ $(CCMXS) $<
 
-matitaclean: matitaclean.ml $(CLEANLIB_DEPS) $(CCMOS)
-       $(OCAMLC) $(CLEANPKGS) -linkpkg -o $@ $(CCMOS) $<
-matitaclean.opt: matitaclean.ml $(CLEANLIB_DEPS) $(CCMXS)
-       $(OCAMLOPT) $(CLEANPKGS) -linkpkg -o $@ $(CCMXS) $<
+matitaclean: matitaclean.ml $(CLEANLIB_DEPS) $(CLEANCMOS)
+       $(OCAMLC) $(CLEANPKGS) -linkpkg -o $@ $(CLEANCMOS) $<
+matitaclean.opt: matitaclean.ml $(CLEANLIB_DEPS) $(CLEANCMXS)
+       $(OCAMLOPT) $(CLEANPKGS) -linkpkg -o $@ $(CLEANCMXS) $<
 
 cicbrowser: matita
        @test -f $@ || ln -s $< $@
@@ -118,12 +136,14 @@ clean:
                matita matita.opt matitac matitac.opt   \
                cicbrowser cicbrowser.opt       \
                matitadep matitadep.opt \
-               matitaclean matitaclean.opt
+               matitaclean matitaclean.opt \
+               matitatop matitatop.opt
 distclean: clean
        rm -f matitaGeneratedGui.ml matitaGeneratedGui.mli
        rm -f config.log config.status Makefile buildTimeConf.ml
        rm -f matita.glade.bak matita.gladep.bak
        rm -rf autom4te.cache/
+       rm -f configure matita.conf.xml.sample
 
 tests: matitac matitadep matitaclean
        @(cd library && make clean all)