1 # Warning: the modules must be in compilation order
30 tactics/paramodulation \
33 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
34 OCAMLPATH = @OCAMLFIND_META_DIR@
35 OCAMLFIND = OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH @OCAMLFIND@
37 METAS = $(filter-out %/paramodulation,$(MODULES:%=METAS/META.helm-%))
39 all: metas $(MODULES:%=%.all)
40 opt: metas $(MODULES:%=%.opt)
43 depend: $(MODULES:%=%.depend)
44 install: $(MODULES:%=%.install)
45 uninstall: $(MODULES:%=%.uninstall)
46 clean: $(MODULES:%=%.clean)
50 distclean: clean clean_metas
51 rm -f Makefile Makefile.common configure config.log config.cache config.status
53 .PHONY: all opt world metas depend install uninstall clean clean_metas distclean
56 OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* all
58 OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* opt
60 OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* clean
62 OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* depend
64 $(MODULES:%=%.install):
65 cd $(@:%.install=%) && make install
66 export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \
67 cp METAS/$(@:%.install=meta.helm-%.src) $$TARGET && \
68 echo "directory=\"$(OCAMLFIND_DEST_DIR)/$(@:%.install=%)\"" >> $$TARGET
69 $(MODULES:%=%.uninstall):
70 cd $(@:%.uninstall=%) && make uninstall
71 rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
72 METAS/META.helm-%: METAS/meta.helm-%.src
73 cp $< $@ && echo "directory=\"$(shell pwd)/$*\"" >> $@
77 echo "digraph G {" > $@
78 echo " rankdir = TB ;" >> $@
79 for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
80 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
85 echo "digraph G {" > $@
86 echo " rankdir = TB ;" >> $@
87 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
88 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
89 for i in $(MODULES); do echo "\"helm-$$i\" [shape=box,style=filled,fillcolor=yellow];" >> $@ ; done
94 .clustersdep.dot: .dep.dot
95 USE_CLUSTERS=yes ./patch_deps.sh $< $@
97 libraries.ps: .dep.dot
99 libraries-ext.ps: .extdep.dot
101 libraries-clusters.ps: .clustersdep.dot
103 libraries-complete.ps: .alldep.dot
106 ps: libraries.ps libraries-ext.ps libraries-clusters.ps