This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/cleancommands.md
2021-03-12 22:10:24 +01:00

1.0 KiB

Specifies one or more shell commands to be executed to clean a Makefile project.

cleancommands { "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.

workspace "MyWorkspace"
   configurations { "Debug", "Release" }

project "MyProject"
   kind "Makefile"

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

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

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

See Also