]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/Makefile
cic_transformations factorized into cic_omdoc and cic_transformations.
[helm.git] / helm / ocaml / cic_proof_checking / Makefile
index 97bd462b5e8deac388c3180b7af3d922602c5aa2..0de0fcda00d2f45b7d6c6173fb421c6b3cfd8865 100644 (file)
@@ -2,13 +2,26 @@ PACKAGE = cic_proof_checking
 REQUIRES = helm-cic
 PREDICATES =
 
-DEPOBJS = cicPp.mli cicPp.ml cicEnvironment.mli cicEnvironment.ml \
-          cicSubstitution.mli cicSubstitution.ml cicReduction.mli \
-          cicReduction.ml cicTypeChecker.mli cicTypeChecker.ml \
-          cicCooking.mli cicCooking.ml cicMinireduction.mli cicMiniReduction.ml
+REDUCTION_IMPLEMENTATION = cicReductionMachine.ml
 
-OBJECTS = cicSubstitution.cmo cicEnvironment.cmo cicPp.cmo \
-          cicMiniReduction.cmo cicReduction.cmo cicTypeChecker.cmo \
-          cicCooking.cmo
+INTERFACE_FILES =  logger.mli cicEnvironment.mli cicPp.mli cicSubstitution.mli \
+                   cicMiniReduction.mli cicReductionNaif.mli cicReduction.mli \
+                   cicTypeChecker.mli
+IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
+
+# Metadata tools only need zeta-reduction
+EXTRA_OBJECTS_TO_INSTALL = \
+            cicSubstitution.cmo cicSubstitution.cmx cicSubstitution.o \
+            cicMiniReduction.cmo cicMiniReduction.cmx cicMiniReduction.o
+EXTRA_OBJECTS_TO_CLEAN =
 
 include ../Makefile.common
+
+cicReduction.ml: $(REDUCTION_IMPLEMENTATION)
+       if ! [ -f $@ ]; then \
+               echo "Using $< for $@"; \
+               ln -s $< $@;    \
+       else    \
+               true;   \
+       fi
+