Change the target mk file with the name of the project
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Feb 2009 18:04:39 +0000 (18:04 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Feb 2009 18:04:39 +0000 (18:04 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2254 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 9cd3211593f21c4d72d41459811ed83f91ca3261..a687bfe02b95aa9d71c6d735da73e02de1e00246 100644 (file)
@@ -63,7 +63,7 @@ def createBertosProject(projectInfos):
     ## Destinatio mk file
     makefile = open("mktemplates/template.mk", "r").read()
     makefile = mkGenerator(projectInfos, makefile)
-    open(prjdir + "/" + "project.mk", "w").write(makefile)
+    open(prjdir + "/" + os.path.basename(prjdir) + ".mk", "w").write(makefile)
 
 def mkGenerator(projectInfos, makefile):
     """