CLEANCMOS = $(CCMOS)
-all: matita matitac matitatop cicbrowser matitadep matitaclean
+all: matita.conf.xml matita matitac matitatop cicbrowser matitadep matitaclean
+
+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))
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)
fi
RT_BASE_DIR=`pwd`
+USER_HOME=`echo $HOME`
+USER_NAME=`echo $USER`
AC_SUBST(CAMLP4O)
AC_SUBST(DEBUG)
AC_SUBST(LABLGLADECC)
AC_SUBST(OCAMLFIND)
AC_SUBST(RT_BASE_DIR)
+AC_SUBST(USER_HOME)
+AC_SUBST(USER_NAME)
AC_OUTPUT([
+ matita.conf.xml.sample
buildTimeConf.ml
Makefile
])
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<helm_registry>
- <section name="matita">
- <key name="auto_disambiguation">true</key>
- <key name="environment_trust">true</key>
- <key name="baseuri">cic:/matita/</key>
- <key name="basedir">.matita/xml</key>
- <key name="owner">@@OWNER@@</key>
-<!-- <key name="font_size">10</key> -->
- <key name="tactics_bar">false</key>
- </section>
- <section name="db">
- <!-- <key name="host">localhost</key> -->
- <key name="host">mowgli.cs.unibo.it</key>
- <key name="user">helm</key>
- <key name="database">matita</key>
- </section>
- <section name="getter">
- <key name="cache_dir">.matita/getter/cache</key>
- <key name="dtd_dir">/projects/helm/xml/dtd</key>
- <key name="prefix">
- cic:/
- file:///projects/helm/library/coq_contribs/
- </key>
- <key name="prefix">
- cic:/matita/
- .matita/xml/matita/
- </key>
- </section>
-</helm_registry>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<helm_registry>
+ <section name="matita">
+ <key name="auto_disambiguation">true</key>
+ <key name="environment_trust">true</key>
+ <key name="baseuri">cic:/matita/</key>
+ <key name="basedir">@USER_HOME@/.matita/xml</key>
+ <key name="owner">@USER_NAME@</key>
+<!-- <key name="font_size">10</key> -->
+ <key name="tactics_bar">false</key>
+ </section>
+ <section name="db">
+ <!-- <key name="host">localhost</key> -->
+ <key name="host">mowgli.cs.unibo.it</key>
+ <key name="user">helm</key>
+ <key name="database">matita</key>
+ </section>
+ <section name="getter">
+ <key name="cache_dir">@USER_HOME@/.matita/getter/cache</key>
+ <key name="dtd_dir">/projects/helm/xml/dtd</key>
+ <key name="prefix">
+ cic:/
+ file:///projects/helm/library/coq_contribs/
+ </key>
+ <key name="prefix">
+ cic:/matita/
+ file://@USER_HOME@/.matita/xml/matita/
+ </key>
+ </section>
+</helm_registry>