Skip to content

rebuildcommands

starkos edited this page Sep 25, 2013 · 8 revisions

The rebuildcommands function specifies one or more shell commands to be executed to rebuild a Makefile project.

#!lua

rebuildcommands { "commands" }

Parameters

commands specifies a list of one or more shell commands to be executed. The commands may use tokens.

Applies To

Makefile projects

Availability

Premake 5.0 or later.

Examples

Use a Makefile project to execute an external makefile.

#!lua

solution "MySolution"
   configurations { "Debug", "Release" }

project "MyProject"
   kind "Makefile"

   buildcommands { 
      "make %{cfg.buildcfg}"
   }

   rebuildcommands { 
      "make %{cfg.buildcfg} rebuild"
   }

   cleancommands {
      "make clean %{cfg.buildcfg}"
   }

See Also

Clone this wiki locally