Commits

tren...@gmail.com  committed 6ea62cf

* project Makefiles are always named Project.make

  • Participants
  • Parent commits 8a4e4ee

Comments (0)

Files changed (1)

File src/actions/make/_make.lua

 --
 
 	function make.getmakefilename(this, searchprjs)
+		if searchprjs then
+			return this.name .. ".make"
+		end
+
 		local count = 0
 		for sln in premake.solution.each() do
 			if sln.location == this.location then 
 				count = count + 1 
 			end
-			
-			if searchprjs then
-				count = count + 1
-				for _, prj in ipairs(sln.projects) do
-					if prj.location == this.location then
-						count = count + 1
-					end
-				end
-			end
 		end
 		
-		if count == 1 then
+		if count ~= 0 then
 			return "Makefile"
 		else
 			return this.name .. ".make"