From: Stefano Zacchiroli Date: Tue, 12 Nov 2002 14:02:49 +0000 (+0000) Subject: symlink automagically cicReduction.ml if it doesn't exist X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=36ec8732f39abfb823e5dcf0e511b67e99759c4f;p=helm.git symlink automagically cicReduction.ml if it doesn't exist --- diff --git a/helm/ocaml/cic_proof_checking/Makefile b/helm/ocaml/cic_proof_checking/Makefile index 95ce4ad15..eb8bd2713 100644 --- a/helm/ocaml/cic_proof_checking/Makefile +++ b/helm/ocaml/cic_proof_checking/Makefile @@ -2,6 +2,8 @@ PACKAGE = cic_proof_checking REQUIRES = helm-cic PREDICATES = +REDUCTION_IMPLEMENTATION = cicReductionNaif.ml + INTERFACE_FILES = logger.mli cicEnvironment.mli cicPp.mli cicSubstitution.mli \ cicMiniReduction.mli cicReductionNaif.mli cicReduction.mli \ cicTypeChecker.mli @@ -13,5 +15,13 @@ EXTRA_OBJECTS_TO_INSTALL = \ 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 +