From 595dc58618a4a5b662ebc7dca7f8a8596b4e8834 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 4 Jun 2013 03:54:29 +0200 Subject: [PATCH] Invoke make(1) through a variable --- tools/graph.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/graph.sh b/tools/graph.sh index bc9fabf..b690b44 100755 --- a/tools/graph.sh +++ b/tools/graph.sh @@ -19,6 +19,7 @@ #variables CC="../../../../../Devel/src/c99/C99-git/src/c99" DOT="dot -Tpng:cairo:gd" +MAKE="make -k" RM="rm -f" VIEW="view" @@ -26,7 +27,7 @@ VIEW="view" #functions #main $RM ../src/*.o.png -(cd '../src' && make -k CC="$CC" CPPFLAGS="-M graph -D__ELF__ -D__i386__" CFLAGS= distclean all) +(cd '../src' && $MAKE CC="$CC" CPPFLAGS="-M graph -D__ELF__ -D__i386__" CFLAGS= distclean all) for i in ../src/*.o; do $DOT -o "$i.png" "$i" done