]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/Makefile.in
configure.in now used (just to check that ocaml and findlib are there)
[helm.git] / helm / ocaml / Makefile.in
1 # Warning: the modules must be in compilation order
2 MODULES = xml urimanager getter pxp cic cic_annotations cic_annotations_cache \
3           cic_cache cic_proof_checking
4
5 METAS = $(MODULES:%=META.helm-%)
6 CWD=`pwd`
7
8 all: $(METAS) $(MODULES:%=%.all)
9 opt: $(METAS) $(MODULES:%=%.opt)
10 depend: $(MODULES:%=%.depend)
11 install: $(MODULES:%=%.install)
12 uninstall: $(MODULES:%=%.uninstall)
13 clean: $(MODULES:%=%.clean)
14         rm -f $(METAS)
15
16 dist-clean: clean
17         rm -f Makefile configure config.log config.cache config.status
18
19 $(MODULES:%=%.all):
20         export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) ; make all
21 $(MODULES:%=%.opt):
22         export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.opt=%) ; make opt
23 $(MODULES:%=%.depend):
24         export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.depend=%) ; make depend
25 $(MODULES:%=%.install):
26         cd $(@:%.install=%) ; make install
27 $(MODULES:%=%.uninstall):
28         cd $(@:%.uninstall=%) ; make uninstall
29 $(MODULES:%=%.clean):
30         cd $(@:%.clean=%) ; make clean
31 META.helm-%: META.helm-%.src
32         cp $< $@ ; echo "directory=\"$(CWD)/$(@:META.helm-%=%)\"" >> $@