From: Pavel TvrdĂ­k Date: Tue, 17 Mar 2015 11:43:01 +0000 (+0100) Subject: Birdtest: Add echoing of compilation command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d0c9831f8e9f5b7974378d029e0035e410097a0;p=thirdparty%2Fbird.git Birdtest: Add echoing of compilation command --- diff --git a/tools/Rules.in b/tools/Rules.in index ef42094e9..53371b304 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