zmk.Script(5) | File Formats Manual (prm) | zmk.Script(5) |
Script
— template
for describing interpreted scripts
include z.mk # scriptName is the name of the script file $(eval $(call ZMK.Expand,Program,scriptName))
The template Script
once
expanded
with a script
name to creates rules for installing and removing a single script
written in an interpreted programming language.
If the script is a
shell script then
it can be automatically checked with shellcheck
, if
available.
This module provides the following targets.
This phony target copies $(scriptName) to $(scriptName.InstallDir), with the name $(scriptName.InstallName) and mode $(scriptName.InstallMode). The target directory is automatically created if required.
The variables Configure.ProgramPrefix
,
Configure.ProgramSuffix
and
Configure.ProgramTransformName
automatically impact
the installed names of all the scripts.
This phony target removes $(scriptName) as installed by the install target.
This phony target uses
shellcheck
to perform static analysis of compatible
scripts.
This phony target depends on the target
static-check-shellcheck
.
This module provides the following variables.
Name of the script interpreter.
The default value is inferred from the extension of the file name.
The directory $(scriptName) is installed to.
The default value is $(bindir). The special value noinst disables the rules related to installation and uninstallation.
The name of the script after installation.
The default value is $(scriptName)
The UNIX mode $(scriptName) is installed with.
The default value is 0755.
Path added to all installation targets.
This variable is normally set externally, to install a compiled program into a staging area during construction of a compiled binary package.
Script
uses
InstallUninstall
to handle installation and
removal.
The Script
template first appeared in zmk
0.1
Zygmunt Krynicki <me@zygoon.pl>
May 3, 2020 | zmk 0.5.1 |