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
6 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
7 OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@
9 METAS = $(MODULES:%=META.helm-%)
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)
21 rm -f Makefile Makefile.common configure config.log config.cache config.status
24 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all
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-%)
38 cd $(@:%.clean=%) && make clean
39 META.helm-%: META.helm-%.src
40 cp $< $@ && echo "directory=\"$(CWD)/$(@:META.helm-%=%)\"" >> $@