LIB_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(REQUIRES))
-all: matita matitac
+all: matita matitac cicbrowser
ifeq ($(HAVE_OCAMLOPT),yes)
CMXS = $(patsubst %.cmo,%.cmx,$(CMOS))
CCMXS = $(patsubst %.cmo,%.cmx,$(CCMOS))
LIBX_DEPS = $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(REQUIRES))
-opt: matita.opt matitac.opt
+opt: matita.opt matitac.opt cicbrowser.opt
else
opt:
@echo "Native code compilation is disabled"
endif
matita: $(LIB_DEPS) $(CMOS) matita.ml
+ rm -f cicbrowser
$(OCAMLC) $(PKGS) -linkpkg -o $@ $(CMOS) matita.ml
matita.opt: $(LIBX_DEPS) $(CMXS) matita.ml
+ rm -f cicbrowser.opt
$(OCAMLOPT) $(PKGS) -linkpkg -o $@ $(CMXS) matita.ml
matitac: $(LIB_DEPS) $(CCMOS) matitac.ml
matitac.opt: $(LIBX_DEPS) $(CMXS) matitac.ml
$(OCAMLOPT) $(CPKGS) -linkpkg -o $@ $(CCMXS) matitac.ml
+cicbrowser: matita
+ test -f $@ || ln $< $@
+cicbrowser.opt: matita.opt
+ test -f $@ || ln $< $@
+
matitaGeneratedGui.ml matitaGeneratedGui.mli: matita.glade
$(LABLGLADECC) $< > matitaGeneratedGui.ml
$(OCAMLC) $(PKGS) -i matitaGeneratedGui.ml > matitaGeneratedGui.mli
clean:
rm -rf *.cma *.cmo *.cmi *.cmx *.cmxa *.a *.o \
- matita matita.opt matitac matitac.opt
+ matita matita.opt matitac matitac.opt \
+ cicbrowser cicbrowser.opt
distclean: clean
rm -f matitaGeneratedGui.ml matitaGeneratedGui.mli
rm -f config.log config.status Makefile buildTimeConf.ml
<glade-interface>
<widget class="GtkWindow" id="MainWin">
- <property name="visible">True</property>
<property name="title" translatable="yes">Matita</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<widget class="GtkWindow" id="ToolBarWin">
<property name="width_request">155</property>
<property name="height_request">450</property>
- <property name="visible">True</property>
<property name="title" translatable="yes">Tactics</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
let _ =
(* CicEnvironment.set_trust (fun _ -> false); *)
+(*
(try
load_script Sys.argv.(1)
with Invalid_argument _ -> ());
- gui#console#show ();
+*)
+ if Pcre.pmatch ~pat:"cicbrowser$" Sys.argv.(0) then begin
+ ignore (MatitaMathView.cicBrowser ~disambiguator ~currentProof ())
+ end else begin
+ gui#main#mainWin#show ();
+ gui#toolbar#toolBarWin#show ();
+ gui#console#show ()
+ end;
GtkThread.main ()