Makefile Launcher

by Samdze

10

Makefile Launcher Plugin

Plugin to execute or build make targets from the Godot Editor.

The plugin adds a new dock to the bottom panel called Make that reads the makefile in your project root directory and creates a list build targets, each triggerable from the UI.

Installation

  • Make sure to have the make executable in your PATH.
    • Windows: the easiest way to install make is to do so through scoop: scoop install make
    • MacOS: Install Xcode command line development tools or install them through brew.
    • Linux: Install make with your package manager. On Debian derived distros: sudo apt install build-essential
  • Copy the addons/makefile_launcher folder in your addons folder.
  • Navigate to Project -> Project Settings -> Plugins and enable the Makefile Launcher plugin.

How to use

  • Place your makefile (or Makefile) in your project root folder.
  • Open the Make bottom panel, the plugin will automatically load the build target it finds.
  • Click the play icon to the left of a build target to trigger a make build, the output of the make command will appear in the Output panel when it terminates.

Screenshot

You're free to configure build targets however you like:

  • Automations
  • Execute scripts
  • Build and compile programs
  • GDNative development

Features

  • Reload the build targets from the makefile clicking on the refresh icon on the top left.
  • Show and hide the Output panel.
  • Add optional directives before your make build targets:
    #confirm
    #args: message branch
    add_commit_push:
      git add .
      git commit -m "$(message)"
      git push origin $(branch)
    • #confirmRequire an extra user confirmation before triggering a make build.
    • #args: <arg_name1> ...Expose variables to the editor. These variables will appear as text fields in the Make panel and can be used during the make build.

Next steps

  • Add support for light themes
  • Add usage examples
  • Add in-place build targets definition lookup
  • Consolidate the directives system and add requested ones
  • Better organize make targets' result outputs
  • Add button to edit the makefile inside Godot
  • Check if make is available
  • More...?

Version

1.0

Engine

3.2

Category

Tools

Download

Version1.0
Download

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author