From 7d0c9831f8e9f5b7974378d029e0035e410097a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Tvrd=C3=ADk?= Date: Tue, 17 Mar 2015 12:43:01 +0100 Subject: [PATCH] Birdtest: Add echoing of compilation command --- tools/Rules.in | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/Rules.in b/tools/Rules.in index ef42094e..53371b30 100644 --- a/tools/Rules.in +++ b/tools/Rules.in @@ -44,12 +44,15 @@ docdir=@prefix@/doc test-src-path := $(srcdir)/$(dir-name)/ build-tests: - @for i in `find $(test-src-path) -name '*_test.c'` ; do \ - testname=`basename $$i .c` ; \ - testobj=$${testname}.o ; \ - $(CC) $(CFLAGS) -I $(srcdir)/birdtest/ -o $$testobj -c $$i && \ - $(CC) $(LDFLAGS) $$testobj -o $$testname $(root-rel)birdtest/birdtest.a || \ - rm -rf $$testname ; \ + @for i in `find $(test-src-path) -name '*_test.c'` ; do \ + testname=`basename $$i .c` ; \ + testobj=$${testname}.o ; \ + printf "$(CC) $(CFLAGS) -I $(srcdir)/birdtest/ -o $$testobj -c $$i && " ; \ + printf "$(CC) $(LDFLAGS) $$testobj -o $$testname $(root-rel)birdtest/birdtest.a || " ; \ + printf "rm -rf $$testname \n" ; \ + $(CC) $(CFLAGS) -I $(srcdir)/birdtest/ -o $$testobj -c $$i && \ + $(CC) $(LDFLAGS) $$testobj -o $$testname $(root-rel)birdtest/birdtest.a || \ + rm -rf $$testname ; \ done ifdef source