[oe-commits] [openembedded-core] 24/83: recipetool: recognize less common makefile names

git at git.openembedded.org git at git.openembedded.org
Fri Jul 1 15:31:52 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 204d19b02265e5b2241888e4c92c0a730f3d3472
Author: Nathan Lynch <nathan_lynch at mentor.com>
AuthorDate: Thu Jun 23 11:53:28 2016 -0500

    recipetool: recognize less common makefile names
    
    GNU make looks for "makefile" and "GNUmakefile" in addition to
    "Makefile", so add these other names to the heuristic for detecting a
    make-based project.
    
    Signed-off-by: Nathan Lynch <nathan_lynch at mentor.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/lib/recipetool/create_buildsys.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/recipetool/create_buildsys.py b/scripts/lib/recipetool/create_buildsys.py
index 78ae4bc..e08ad27 100644
--- a/scripts/lib/recipetool/create_buildsys.py
+++ b/scripts/lib/recipetool/create_buildsys.py
@@ -737,7 +737,7 @@ class MakefileRecipeHandler(RecipeHandler):
         if 'buildsystem' in handled:
             return False
 
-        makefile = RecipeHandler.checkfiles(srctree, ['Makefile'])
+        makefile = RecipeHandler.checkfiles(srctree, ['Makefile', 'makefile', 'GNUmakefile'])
         if makefile:
             lines_after.append('# NOTE: this is a Makefile-only piece of software, so we cannot generate much of the')
             lines_after.append('# recipe automatically - you will need to examine the Makefile yourself and ensure')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list