From 36ec8732f39abfb823e5dcf0e511b67e99759c4f Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 12 Nov 2002 14:02:49 +0000 Subject: [PATCH] symlink automagically cicReduction.ml if it doesn't exist --- helm/ocaml/cic_proof_checking/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 + -- 2.39.2