]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: Add echoing of compilation command
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Tue, 17 Mar 2015 11:43:01 +0000 (12:43 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Tue, 17 Mar 2015 11:43:01 +0000 (12:43 +0100)
tools/Rules.in

index ef42094e9effd8d4c1742883b5ff6945f59ff14b..53371b30451576c5f35b28678fdbab3d8561cec4 100644 (file)
@@ -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