From: batt Date: Mon, 29 Mar 2010 15:56:13 +0000 (+0000) Subject: Add replace line into the custom user mk generator function X-Git-Tag: 2.5.0~603 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ba43f2ffa5ecaebee229460738d3d0fae20d5158;p=bertos.git Add replace line into the custom user mk generator function git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3305 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 3ba5cfcc..5c03074d 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -267,6 +267,7 @@ def versionFileGenerator(project_info, version_file): def userMkGenerator(project_info, makefile): mk_data = {} mk_data["$pname"] = os.path.basename(project_info.info("PROJECT_PATH")) + mk_data["$main"] = os.path.basename(project_info.info("PROJECT_PATH")) + "/main.c" for key in mk_data: while makefile.find(key) != -1: makefile = makefile.replace(key, mk_data[key])