1 # Warning: the modules must be in compilation order
9 cic_annotations_cache \
13 tex_cic_textual_parser \
24 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
25 OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@
27 METAS = $(MODULES:%=METAS/META.helm-%)
30 all: metas $(MODULES:%=%.all)
31 opt: metas $(MODULES:%=%.opt)
33 depend: $(MODULES:%=%.depend)
34 install: $(MODULES:%=%.install)
35 uninstall: $(MODULES:%=%.uninstall)
36 clean: $(MODULES:%=%.clean) clean_metas
41 rm -f Makefile Makefile.common configure config.log config.cache config.status
44 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all
46 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.opt=%) && make opt
47 $(MODULES:%=%.depend):
48 export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.depend=%) && make depend
49 $(MODULES:%=%.install):
50 cd $(@:%.install=%) && make install
51 export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \
52 cp $(@:%.install=META.helm-%.src) $$TARGET && \
53 echo "directory=\"$(OCAMLFIND_DEST_DIR)/$(@:%.install=%)\"" >> $$TARGET
54 $(MODULES:%=%.uninstall):
55 cd $(@:%.uninstall=%) && make uninstall
56 rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
58 cd $(@:%.clean=%) && make clean
59 METAS/META.helm-%: METAS/meta.helm-%.src
60 cp $< $@ && echo "directory=\"$(CWD)/$*\"" >> $@
64 echo "digraph G {" > $@
65 echo " rankdir = TB ;" >> $@
66 for i in $(MODULES); do ocamlfind query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
67 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
70 libraries.ps: .dep.dot