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