]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/Makefile.in
Initial revision
[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 cic_textual_parser cic_unification \
4           mathql mathql_interpreter mathql_interpreter_galax
5
6 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
7 OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@
8
9 METAS = $(MODULES:%=META.helm-%)
10 CWD=`pwd`
11
12 all: $(METAS) $(MODULES:%=%.all)
13 opt: $(METAS) $(MODULES:%=%.opt)
14 depend: $(MODULES:%=%.depend)
15 install: $(MODULES:%=%.install)
16 uninstall: $(MODULES:%=%.uninstall)
17 clean: $(MODULES:%=%.clean)
18         rm -f $(METAS)
19
20 dist-clean: clean
21         rm -f Makefile Makefile.common configure config.log config.cache config.status
22
23 $(MODULES:%=%.all):
24         export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all
25 $(MODULES:%=%.opt):
26         export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.opt=%) && make opt
27 $(MODULES:%=%.depend):
28         export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.depend=%) && make depend
29 $(MODULES:%=%.install):
30         cd $(@:%.install=%) && make install
31         export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \
32         cp $(@:%.install=META.helm-%.src) $$TARGET && \
33         echo "directory=\"$(OCAMLFIND_DEST_DIR)/$(@:%.install=%)\"" >> $$TARGET
34 $(MODULES:%=%.uninstall):
35         cd $(@:%.uninstall=%) && make uninstall
36         rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
37 $(MODULES:%=%.clean):
38         cd $(@:%.clean=%) && make clean
39 META.helm-%: META.helm-%.src
40         cp $< $@ && echo "directory=\"$(CWD)/$(@:META.helm-%=%)\"" >> $@