Add replace line into the custom user mk generator function
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 29 Mar 2010 15:56:13 +0000 (15:56 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 29 Mar 2010 15:56:13 +0000 (15:56 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3305 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 3ba5cfcc15d3a021e9ac405822af35d995bba0cb..5c03074d25876a37399c87ffb194daccc38025ce 100644 (file)
@@ -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])