[rtems-libbsd commit] freebsd-to-rtems: Fix the Makefile test generator.

Chris Johns chrisj at rtems.org
Mon May 18 01:00:40 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    6dc864939347ba8db5dc0ba61c88273e906f421e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=6dc864939347ba8db5dc0ba61c88273e906f421e

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sat May 16 16:52:52 2015 +1000

freebsd-to-rtems: Fix the Makefile test generator.

This removes the make warnings.

---

 makefile.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/makefile.py b/makefile.py
index ce84c65..ad0c734 100755
--- a/makefile.py
+++ b/makefile.py
@@ -73,13 +73,13 @@ class TestFragementComposer(builder.BuildSystemFragmentComposer):
         for fileFragment in self.fileFragments:
             makefileFragment += testOFiles + ' += ' + testDir + '/' + fileFragment + '.o\n' \
                                + testDFiles + ' += ' + testDir + '/' + fileFragment + '.d\n'
-            makefileFragment += '$(' + testPrefix + '): $(' + testOFiles + ') $(LIB)\n' \
-                               '\t$(LINK.c) -Wl,-Map,' + testMap + ' $^ -lm -lz -o $@\n' \
-                               + testCollection + ' += $(' + testPrefix + ')\n' \
-                               'O_FILES += $(' + testOFiles + ')\n' \
-                               'D_FILES += $(' + testDFiles + ')\n'
-            if self.runTest:
-                makefileFragment += 'RUN_' + testCollection + ' += $(' + testPrefix + ')\n'
+        makefileFragment += '$(' + testPrefix + '): $(' + testOFiles + ') $(LIB)\n' \
+                            '\t$(LINK.c) -Wl,-Map,' + testMap + ' $^ -lm -lz -o $@\n' \
+                            + testCollection + ' += $(' + testPrefix + ')\n' \
+                            'O_FILES += $(' + testOFiles + ')\n' \
+                            'D_FILES += $(' + testDFiles + ')\n'
+        if self.runTest:
+            makefileFragment += 'RUN_' + testCollection + ' += $(' + testPrefix + ')\n'
         return makefileFragment
 
 class KVMSymbolsFragmentComposer(builder.BuildSystemFragmentComposer):



More information about the vc mailing list