make plugin is useful when building make-based parts. Make-based projects will typically include a Makefile that drives the build.
This plugin runs ‘make’ followed by ‘make install’, except when the
artifacts keyword is used with core18 or core.
This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.
Its features and syntax are dependent on which base is being used, as outlined below:
make-parameters(list of strings)
Use Snapcraft’s override-build functionality to implement the equivalent
make-install-var functionality available to core18 and core snaps.
Requires Snapcraft version 4.0+.
Link/copy the given files from the make output to the snap installation directory. If specified, the
make install step will be skipped.
Use the given file as the makefile.
make-parameters (list of strings)
Pass the given parameters to the make command.
make-install-var (string; default: DESTDIR)
Use this variable to redirect the installation into the snap.
Requires Snapcraft version 3.x.
Last updated 6 months ago. Help improve this document in the forum.