X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FMakefile.in;h=76183c0e5a6fcaf97e00e41eb9363b7b2c192e5a;hb=86af949158e013178557c7fec7662ac06fae753c;hp=c0c8854338f199d3e0f94d25b11acfc48ff20053;hpb=646ade789430669f4a6be3ecbf47d89fe865f132;p=helm.git diff --git a/helm/matita/Makefile.in b/helm/matita/Makefile.in index c0c885433..76183c0e5 100644 --- a/helm/matita/Makefile.in +++ b/helm/matita/Makefile.in @@ -21,45 +21,78 @@ OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLC_FLAGS) $(OCAML_DEBUG_FLAGS) OCAMLOPT = $(OCAMLFIND) opt $(OCAMLC_FLAGS) OCAMLDEP = $(OCAMLFIND) ocamldep $(OCAML_FLAGS) # objects for matita (GTK GUI) +NULL = CMOS = \ buildTimeConf.cmo \ matitaLog.cmo \ matitaTypes.cmo \ + matitaMoo.cmo \ matitaExcPp.cmo \ matitaMisc.cmo \ matitaDb.cmo \ + matitamakeLib.cmo \ + matitaInit.cmo \ matitaSync.cmo \ - matitacleanLib.cmo \ + matitacleanLib.cmo \ matitaDisambiguator.cmo \ matitaEngine.cmo \ - matitacLib.cmo \ + matitacLib.cmo \ matitaScript.cmo \ matitaGeneratedGui.cmo \ matitaGtkMisc.cmo \ + matitaMathView.cmo \ matitaGui.cmo \ - matitaMathView.cmo + $(NULL) # objects for matitac (batch compiler) CCMOS = \ buildTimeConf.cmo \ matitaLog.cmo \ matitaTypes.cmo \ + matitaMoo.cmo \ matitaExcPp.cmo \ matitaMisc.cmo \ matitaDb.cmo \ + matitamakeLib.cmo \ + matitaInit.cmo \ matitaSync.cmo \ matitaDisambiguator.cmo \ - matitaEngine.cmo \ matitacleanLib.cmo \ - matitacLib.cmo + matitaEngine.cmo \ + matitacLib.cmo \ + $(NULL) CLEANCMOS = $(CCMOS) - - -all: matita matitac matitatop cicbrowser matitadep matitaclean +MAKECMOS = $(CCMOS) +PROGRAMS_BYTE = matita matitac cicbrowser matitadep matitaclean matitamake +PROGRAMS = $(PROGRAMS_BYTE) matitatop dump_moo +PROGRAMS_OPT = $(patsubst %,%.opt,$(PROGRAMS_BYTE)) + +all: matita.conf.xml $(PROGRAMS) + +matita.conf.xml: matita.conf.xml.sample + @if diff matita.conf.xml.sample matita.conf.xml 1>/dev/null 2>/dev/null; then\ + touch matita.conf.xml;\ + else\ + 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;\ + fi + +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)) +MAKECMXS = $(patsubst %.cmo,%.cmx,$(MAKECMOS)) 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)) @@ -68,7 +101,9 @@ DEPLIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format DEPLIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(DEPREQUIRES)) CLEANLIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(CLEANREQUIRES)) CLEANLIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(CLEANREQUIRES)) -opt: matita.opt matitac.opt cicbrowser.opt matitadep.opt matitaclean.opt +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: $(PROGRAMS_OPT) else opt: @echo "Native code compilation is disabled" @@ -79,6 +114,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 @@ -97,6 +135,11 @@ matitaclean: matitaclean.ml $(CLEANLIB_DEPS) $(CLEANCMOS) matitaclean.opt: matitaclean.ml $(CLEANLIB_DEPS) $(CLEANCMXS) $(OCAMLOPT) $(CLEANPKGS) -linkpkg -o $@ $(CLEANCMXS) $< +matitamake: matitamake.ml $(MAKECMOS) + $(OCAMLC) $(PKGS) -linkpkg -o $@ $(MAKECMOS) $< +matitamake.opt: matitamake.ml $(MAKECMXS) + $(OCAMLOPT) $(PKGS) -linkpkg -o $@ $(MAKECMXS) $< + cicbrowser: matita @test -f $@ || ln -s $< $@ cicbrowser.opt: matita.opt @@ -120,20 +163,30 @@ clean: matita matita.opt matitac matitac.opt \ cicbrowser cicbrowser.opt \ matitadep matitadep.opt \ - matitaclean matitaclean.opt + matitaclean matitaclean.opt \ + matitamake matitamake.opt \ + matitatop matitatop.opt \ + dump_moo 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) - @(cd tests && make clean all) + @(cd library && make MATITAC="- ../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac ../matitaclean /dev/null" clean all) + @(cd tests && make MATITAC="- ../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac ../matitaclean /dev/null" clean all) + @(cd contribs/LAMBDA-TYPES && make MATITAC="- ../../scripts/do_tests.sh $(DO_TESTS_OPTS) ../../matitac ../../matitaclean /dev/null" clean all) tests.opt: matitac.opt matitadep.opt matitaclean.opt - @(cd library && make clean.opt opt) - @(cd tests && make clean.opt opt) -.PHONY: tests tests.opt + @(cd library && make MATITAC="- ../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac.opt ../matitaclean.opt /dev/null" clean.opt opt) + @(cd tests && make MATITAC="- ../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac.opt ../matitaclean.opt /dev/null" clean.opt opt) + @(cd contribs/LAMBDA-TYPES && make MATITAC="- ../../scripts/do_tests.sh $(DO_TESTS_OPTS) ../../matitac.opt ../../matitaclean.opt /dev/null" clean.opt opt) +cleantests: matitaclean + @(cd library && make clean) + @(cd tests && make clean) + @(cd contribs/LAMBDA-TYPES && make clean) +.PHONY: tests tests.opt cleantests tags: TAGS .PHONY: TAGS @@ -160,3 +213,4 @@ endif ifeq ($(MAKECMDGOALS),opt) $(CMOS:%.cmo=%.cmi): $(LIBX_DEPS) endif +