]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/Makefile
- script.sh added to the repository: you should change it to reflect your
[helm.git] / helm / gTopLevel / Makefile
index fb62256efa1654f97294c98d3d6a160684c8e97b..f7738091b9b8224d4f802a24a4ebe71377f42c3f 100644 (file)
@@ -13,8 +13,8 @@ OCAMLDEP = ocamldep -pp camlp4o
 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
 
-all: gTopLevel
-opt: gTopLevel.opt
+all: styles gTopLevel
+opt: styles gTopLevel.opt
 
 DEPOBJS = \
        xml2Gdome.ml xml2Gdome.mli proofEngine.ml proofEngine.mli \
@@ -34,6 +34,16 @@ TOPLEVELOBJS = \
        termEditor.cmo texTermEditor.cmo applyStylesheets.cmo termViewer.cmo \
        invokeTactics.cmo hbugs.cmo gTopLevel.cmo
 
+styles:
+       @echo "***********************************************************************"
+       @if [ -d stylesheets -a -d meta_stylesheets ] ; then echo -e "* stylesheets and metastylesheets found:                              *\\n* I will create the request hyperlinks in styles                      *" ; else echo -e "* stylesheets or meta_stylesheets not found:                          *\\n* you should check-out the two directories from the MoWGLI repository *" ; exit -1 ; fi
+       @echo "***********************************************************************"
+       mkdir styles
+       (cd stylesheets && for i in *.xsl ; do ln -s ../stylesheets/$$i ../styles/$$i ; done)
+       (cd stylesheets/generated && for i in *.xsl ; do ln -s ../stylesheets/generated/$$i ../../styles/$$i ; done)
+       rm styles/rootcontent.xsl
+       ln -s ../rootcontent.xsl styles/rootcontent.xsl
+
 depend:
        $(OCAMLDEP) $(DEPOBJS) > .depend