# <%= premake.actions[_ACTION].shortname %> solution makefile autogenerated by Premake # Usage: make [ config=config_name ] # Where {config_name} is one of: <%= table.implode(this.configurations, '"', '"', ', '):lower() %>. ifndef config config=<%= _MAKE.esc(this.configurations[1]:lower()) %> endif export config PROJECTS := <%= table.concat(_MAKE.esc(table.extract(this.projects, "name")), " ") %> .PHONY: all clean $(PROJECTS) all: $(PROJECTS) <% for _,prj in ipairs(this.projects) do %> <% for cfg in premake.eachconfig(prj) do %> ifeq ($(config),<%= _MAKE.esc(cfg.name:lower())%>) DEPENDENCIES := <%= table.concat(_MAKE.esc(table.extract(premake.getdependencies(cfg), "name")), " ") %> endif <% end %> <%= _MAKE.esc(prj.name) %>: ${DEPENDENCIES} @echo ==== Building <%= prj.name %> ==== @${MAKE} --no-print-directory -C <%=_MAKE.esc(path.getrelative(this.location, prj.location))%> -f <%=_MAKE.esc(_MAKE.getmakefilename(prj, true))%> <% end %> clean: <% for _,prj in ipairs(this.projects) do %> @${MAKE} --no-print-directory -C <%=_MAKE.esc(path.getrelative(this.location, prj.location))%> -f <%=_MAKE.esc(_MAKE.getmakefilename(prj, true))%> clean <% end %>