Skip to content

Instantly share code, notes, and snippets.

@borntyping
Created February 4, 2013 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borntyping/4707916 to your computer and use it in GitHub Desktop.
Save borntyping/4707916 to your computer and use it in GitHub Desktop.
Dependency graph for pytentd
# Requires snakefood python module
all: data clusters graph
data:
@echo "Generating data"
@sfood tentd > /tmp/tentd.deps
clusters: data
@echo "Clustering data"
@touch /tmp/tentd.clusters
@echo "mongoengine" >> /tmp/tentd.clusters
@echo "flask" >> /tmp/tentd.clusters
@echo "werkzeug" >> /tmp/tentd.clusters
@echo "tentd/blueprints" >> /tmp/tentd.clusters
@echo "tentd/control" >> /tmp/tentd.clusters
@echo "tentd/documents" >> /tmp/tentd.clusters
@echo "tentd/lib" >> /tmp/tentd.clusters
@echo "tentd/tests" >> /tmp/tentd.clusters
@echo "tentd/utils" >> /tmp/tentd.clusters
@cat /tmp/tentd.deps | sfood-cluster --from-file=/tmp/tentd.clusters > /tmp/tentd.new.deps
@mv /tmp/tentd.new.deps /tmp/tentd.deps
@rm /tmp/tentd.clusters
graph: clusters
@echo "Creating graph"
@sfood-graph -r -p /tmp/tentd.deps | sed -e "s/size = \"8,10\",//" | dot -Tpng -o /tmp/tentd.deps.png
@firefox /tmp/tentd.deps.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment