4 include ../Makefile.defs
6 # Warning: the modules must be in compilation order
35 tactics/paramodulation \
38 METAS = $(filter-out %/paramodulation,$(MODULES:%=METAS/META.helm-%))
40 all: metas $(MODULES:%=rec@all@%)
41 opt: metas $(MODULES:%=rec@opt@%)
42 ifeq ($(HAVE_OCAMLOPT),yes)
47 depend: $(MODULES:%=rec@depend@%)
48 install: $(MODULES:%=rec@install@%)
49 uninstall: $(MODULES:%=rec@uninstall@%)
50 clean: $(MODULES:%=rec@clean@%) clean_metas
52 .stats: $(MODULES:%=rec@.stats@%)
53 (for m in $(MODULES); do echo -n "$$m:"; cat $$m/.stats; done) \
54 | sort -t : -k 2 -n -r > .stats
56 rec@%@tactics/paramodulation:
57 $(MAKE) -C tactics/paramodulation $*
59 $(MAKE) -C $(word 2, $(subst @, ,$*)) $(word 1, $(subst @, ,$*))
62 libraries-clusters.ps \
63 libraries-clusters.pdf \
71 distclean: clean clean_metas
73 rm -f configure config.log config.cache config.status
74 rm -f $(EXTRA_DIST_CLEAN)
76 .PHONY: all opt world metas depend install uninstall clean clean_metas distclean
78 METAS/META.helm-%: METAS/meta.helm-%.src
79 cp $< $@ && echo "directory=\"$(shell pwd)/$*\"" >> $@
81 SIMPLIFYDEPS = ../daemons/graphs/tools/simplify_deps/simplify_deps
83 $(MAKE) -C $(dir $(SIMPLIFYDEPS))
86 .dep.dot: $(SIMPLIFYDEPS)
87 echo "digraph G {" > $@
88 echo " rankdir = TB ;" >> $@
89 for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
90 mv $@ $@.old ; $(SIMPLIFYDEPS) < $@.old > $@ ; rm $@.old
95 echo "digraph G {" > $@
96 echo " rankdir = TB ;" >> $@
97 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
98 mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
99 for i in $(MODULES); do echo "\"helm-$$i\" [shape=box,style=filled,fillcolor=yellow];" >> $@ ; done
102 .extdep.dot: .dep.dot
103 STATS/patch_deps.sh $< $@
104 .clustersdep.dot: .dep.dot
105 USE_CLUSTERS=yes STATS/patch_deps.sh $< $@
107 libraries.ps: .dep.dot
109 libraries-ext.ps: .extdep.dot
111 libraries-clusters.ps: .clustersdep.dot
113 libraries-complete.ps: .alldep.dot
116 ps: libraries.ps libraries-ext.ps libraries-clusters.ps