]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/Makefile
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / gTopLevel / Makefile
index 076fef910c0d4fcc4726f376b1c1ce1657e09030..5f8063939e54cd990cd886dc4702f5ee658726ab 100644 (file)
@@ -17,17 +17,17 @@ LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PRED
 all: styles gTopLevel
 opt: styles gTopLevel.opt
 
-DEPOBJS = \
-        proofEngine.ml proofEngine.mli logicalOperations.ml \
-        logicalOperations.mli disambiguate.ml disambiguate.mli termEditor.ml \
-        termEditor.mli texTermEditor.ml texTermEditor.mli xmlDiff.ml \
-        xmlDiff.mli termViewer.ml termViewer.mli invokeTactics.ml \
-        invokeTactics.mli hbugs.ml hbugs.mli gTopLevel.ml
-
-TOPLEVELOBJS = \
-            proofEngine.cmo logicalOperations.cmo \
-       disambiguate.cmo termEditor.cmo texTermEditor.cmo xmlDiff.cmo \
-       termViewer.cmo invokeTactics.cmo hbugs.cmo gTopLevel.cmo
+INTERFACE_FILES = \
+       proofEngine.mli logicalOperations.mli disambiguate.mli \
+       termEditor.mli texTermEditor.mli xmlDiff.mli termViewer.mli \
+       invokeTactics.mli hbugs.mli
+
+DEPOBJS = $INTERFACE_FILES $(INTERFACE_FILES:%.mli=%.ml) gTopLevel.ml
+
+TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) gTopLevel.cmo
+
+$(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
+$(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
 
 styles:
        @echo "***********************************************************************"