1 # Warning: the modules must be in compilation order
13 cic_annotations_cache \
17 tex_cic_textual_parser \
28 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
29 OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@
31 METAS = $(MODULES:%=METAS/META.helm-%)
34 all: metas $(MODULES:%=%.all)
35 opt: metas $(MODULES:%=%.opt)
38 depend: $(MODULES:%=%.depend)
39 install: $(MODULES:%=%.install)
40 uninstall: $(MODULES:%=%.uninstall)
41 clean: $(MODULES:%=%.clean)
44 distclean: clean clean_metas
45 rm -f Makefile Makefile.common configure config.log config.cache config.status
47 .PHONY: all opt world metas depend install uninstall clean clean_metas distclean
50 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all
52 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.opt=%) && make opt
53 $(MODULES:%=%.depend):
54 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.depend=%) && make depend
55 $(MODULES:%=%.install):
56 cd $(@:%.install=%) && make install
57 export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \
58 cp METAS/$(@:%.install=meta.helm-%.src) $$TARGET && \
59 echo "directory=\"$(OCAMLFIND_DEST_DIR)/$(@:%.install=%)\"" >> $$TARGET
60 $(MODULES:%=%.uninstall):
61 cd $(@:%.uninstall=%) && make uninstall
62 rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
64 cd $(@:%.clean=%) && make clean
65 METAS/META.helm-%: METAS/meta.helm-%.src
66 cp $< $@ && echo "directory=\"$(CWD)/$*\"" >> $@
70 echo "digraph G {" > $@
71 echo " rankdir = TB ;" >> $@
72 for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
73 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
78 echo "digraph G {" > $@
79 echo " rankdir = TB ;" >> $@
80 for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep -v "pxp-" | sed "s/^pxp/pxp[-*]/g" | sed "s/^/ \"helm-$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
81 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
82 for i in $(MODULES); do echo "\"helm-$$i\" [shape=box,style=filled,fillcolor=yellow];" >> $@ ; done
86 libraries.ps: .dep.dot
89 libraries-complete.ps: .alldep.dot