]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_proof_checking/Makefile
make also in utilities on whatever target
[helm.git] / helm / ocaml / cic_proof_checking / Makefile
1
2 PACKAGE = cic_proof_checking
3 REQUIRES = helm-cic helm-logger helm-getter helm-xml pxp
4 PREDICATES =
5
6 REDUCTION_IMPLEMENTATION = cicReductionMachine.ml
7
8 INTERFACE_FILES = \
9         cicLogger.mli \
10         cicEnvironment.mli \
11         cicPp.mli \
12         cicUnivUtils.mli \
13         cicSubstitution.mli \
14         cicMiniReduction.mli \
15         cicReductionNaif.mli \
16         cicReduction.mli \
17         cicTypeChecker.mli \
18         cicElim.mli
19 IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
20
21 # Metadata tools only need zeta-reduction
22 EXTRA_OBJECTS_TO_INSTALL = \
23             cicSubstitution.cmo cicSubstitution.cmx cicSubstitution.o \
24             cicMiniReduction.cmo cicMiniReduction.cmx cicMiniReduction.o
25 EXTRA_OBJECTS_TO_CLEAN =
26
27 include ../Makefile.common
28
29 all: all_utilities
30 opt: opt_utilities
31
32 all_utilities:
33         $(MAKE) -C utilities/ all
34 opt_utilities:
35         $(MAKE) -C utilities/ opt
36
37 cicReduction.ml: $(REDUCTION_IMPLEMENTATION)
38         if ! [ -f $@ ]; then \
39                 echo "Using $< for $@"; \
40                 ln -s $< $@;    \
41         else    \
42                 true;   \
43         fi
44
45 clean: clean_utilities
46 clean_utilities:
47         $(MAKE) -C utilities/ clean
48