Creates a graph of dependencies from GNU-Make; Output is a graphiz-dot file or a Gexf-XML file.
Creates a graph of dependencies from GNU-Make; Output is a graphiz-dot file or a Gexf-XML file.
Creates a graph of dependencies from GNU-Make
Output can be generated for the following formats:
Notice that sub-makefiles are not supported.
--format, removed otpions 'x' and 'd'makemake -Bnd | make2graph > output.dotmake -Bnd | make2graph | dot -Tpng -o out.pngmake -Bnd | make2graph --format x > output.xmlmake -Bnd | make2graph --format p -g "skinparam BackgroundColor LightYellow" -n "BackgroundColor Peru" -e "skinparam ArrowColor Blue" -d "BackgroundColor Salmon" > output.pumlmake2graph only parses english messages from GNU make. If you're using another locale, you should set LC_ALL=C.
$ cd tabix-0.2.5
$ make -Bnd |make2graph…$ cd tabix-0.2.5
$ make -Bnd | make2graph --format x
Pierre Lindenbaum
Makefile Graph
deep output was needed when using a cluster: I needed a list of all deepest independant targets that must be re-built.
For the following Makefile
NUMS=1 2 3 4 5
.PHONY:all clean
%.c: %.b
echo "$ $@
%.b: %.a
echo "$ $@
%.a:
echo "$@" > $@
all:$(addsuffix .c,${NUMS})
clean:
rm -f $(foreach P,a b c,$(addsuffix .${P},${NUMS})) make a few targets:
$ make 1.a 2.a 3.b 4.c
echo "1.a" > 1.a
echo "2.a" > 2.a
echo "3.a" > 3.a
echo "3.a" > 3.b
echo "4.a" > 4.a
echo "4.a" > 4.b
echo "4.b" > 4.c
rm 3.a 4.a 4.bdeep output :
$ make -nd all | ./make2graph --format e
1.b
2.b
3.c
5.abuild other targets
$ make 1.b 3.c
echo "1.a" > 1.b
echo "3.b" > 3.cnew deep output :
$ make -nd all | ./make2graph --format e
1.c
2.b
5.ahttps://twitter.com/yokofakun/status/514329843065167872
https://twitter.com/yokofakun/status/278086490809040896
@yokofakun Using your https://t.co/Z1xg8dhW2r, and Graphviz 2.36 for OS X. Large graph. How can I scale it better? pic.twitter.com/d6ZQX2MnqH — Lex Nederbragt (@lexnederbragt) August 20, 2014
try the gexf+ #gephi output or another grafviz algo like neato
No open issues yet, or sync has not completed.