From: Stefano Zacchiroli Date: Wed, 22 Feb 2006 22:58:13 +0000 (+0000) Subject: - ensure simplify_deps exists when invoked X-Git-Tag: make_still_working~7535 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=5b1dae2bbe5953a848fce91f0e528faebacc7011;p=helm.git - ensure simplify_deps exists when invoked - added a SIMPLIFYDEPS variable to change its location --- diff --git a/helm/software/components/Makefile b/helm/software/components/Makefile index 718c14b91..686fa74d7 100644 --- a/helm/software/components/Makefile +++ b/helm/software/components/Makefile @@ -78,12 +78,16 @@ distclean: clean clean_metas METAS/META.helm-%: METAS/meta.helm-%.src cp $< $@ && echo "directory=\"$(shell pwd)/$*\"" >> $@ +SIMPLIFYDEPS = ../daemons/graphs/tools/simplify_deps/simplify_deps +$(SIMPLIFYDEPS): + $(MAKE) -C $(dir $(SIMPLIFYDEPS)) + .PHONY: .dep.dot -.dep.dot: +.dep.dot: $(SIMPLIFYDEPS) echo "digraph G {" > $@ echo " rankdir = TB ;" >> $@ for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done - mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old + mv $@ $@.old ; $(SIMPLIFYDEPS) < $@.old > $@ ; rm $@.old echo "}" >> $@ .PHONY: .alldep.dot