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 \
5 tex_cic_textual_parser cic_unification mathql mathql_generator \
6 mathql_interpreter cic_omdoc tactics cic_transformations
8 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
9 OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@
11 METAS = $(MODULES:%=METAS/META.helm-%)
14 all: metas $(MODULES:%=%.all)
15 opt: metas $(MODULES:%=%.opt)
17 depend: $(MODULES:%=%.depend)
18 install: $(MODULES:%=%.install)
19 uninstall: $(MODULES:%=%.uninstall)
20 clean: $(MODULES:%=%.clean) clean_metas
25 rm -f Makefile Makefile.common configure config.log config.cache config.status
28 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all
30 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.opt=%) && make opt
31 $(MODULES:%=%.depend):
32 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.depend=%) && make depend
33 $(MODULES:%=%.install):
34 cd $(@:%.install=%) && make install
35 export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \
36 cp $(@:%.install=META.helm-%.src) $$TARGET && \
37 echo "directory=\"$(OCAMLFIND_DEST_DIR)/$(@:%.install=%)\"" >> $$TARGET
38 $(MODULES:%=%.uninstall):
39 cd $(@:%.uninstall=%) && make uninstall
40 rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
42 cd $(@:%.clean=%) && make clean
43 METAS/META.helm-%: METAS/meta.helm-%.src
44 cp $< $@ && echo "directory=\"$(CWD)/$*\"" >> $@
48 echo "digraph G {" > $@
49 echo " rankdir = TB ;" >> $@
50 for i in $(MODULES); do ocamlfind query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
51 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
54 libraries.ps: .dep.dot