# {{{ Distribution stuff
+stdlib:
+ $(MAKE) MATITA_FLAGS="-system" -C library/
+
+DEST = @RT_BASE_DIR@
+INSTALL_STUFF = \
+ icons/ \
+ matita.gtkrc \
+ matita.lang \
+ matita.ma.templ \
+ core_notation.moo \
+ matita.conf.xml \
+ closed.xml \
+ gtkmathview.matita.conf.xml \
+ template_makefile.in \
+ library/ \
+ $(PROGRAMS_BYTE) \
+ $(NULL)
+ifeq ($(HAVE_OCAMLOPT),yes)
+INSTALL_STUFF += $(PROGRAMS_OPT)
+endif
+
+install:
+ install -d $(DEST)
+ cp -a $(INSTALL_STUFF) $(DEST)
+uninstall:
+
STATIC_LINK = dist/static_link/static_link
# for matita
STATIC_LIBS = \
let lang_file = runtime_base_dir ^ "/matita.lang"
let script_template = runtime_base_dir ^ "/matita.ma.templ"
let core_notation_script = runtime_base_dir ^ "/core_notation.moo"
-let coq_notation_script = runtime_base_dir ^ "/coq.moo"
let matita_conf = runtime_base_dir ^ "/matita.conf.xml"
let closed_xml = runtime_base_dir ^ "/closed.xml"
let gtkmathview_conf = runtime_base_dir ^ "/gtkmathview.matita.conf.xml"
Helm_registry.set "user.name" login
end;
tilde_expand_key "matita.basedir";
+ if Helm_registry.get_bool "matita.system" then begin
+ prerr_endline "SISTEMA";
+ Helm_registry.set "user.home" BuildTimeConf.runtime_base_dir;
+ end;
tilde_expand_key "user.home";
ConfigurationFile::init_status
end
wants [ ConfigurationFile; CmdLine ] init_status;
if not (already_configured [ Db ] init_status) then
begin
- MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner");
+ if not (Helm_registry.get_bool "matita.system") then
+ MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner");
LibraryDb.create_owner_environment ();
Db::init_status
end
let registry_defaults =
[
"db.nodb", "false";
+ "matita.system", "false";
"matita.debug", "false";
"matita.external_editor", "gvim -f -c 'go %p' %f";
"matita.preserve", "false";
Arg.Unit (fun () -> Helm_registry.set_bool "matita.preserve" true),
"Turns off automatic baseuri cleaning";
"-nodb", Arg.Unit (fun () -> Helm_registry.set_bool "db.nodb" true),
- ("Avoid using external database connection "
- ^ "(WARNING: disable many features)");
+ ("Avoid using external database connection "
+ ^ "(WARNING: disable many features)");
+ "-system", Arg.Unit (fun () ->
+ Helm_registry.set_bool "matita.system" true),
+ ("Act on the system library instead of the user one"
+ ^ "(WARNING: not for the casual user)");
"-noprofile",
Arg.Unit (fun () -> Helm_registry.set_bool "matita.profile" false),
"Turns off profiling printings";