service/project.zsh

31 lines
600 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package=service
version=0.1.0
variables+=(
LIBEXECDIR '$(PREFIX)/libexec'
SYSCONFDIR '/etc'
VARSTATEDIR '/var'
)
targets=(service status)
for target in service status; do
type[$target]=crystal
sources[$target]=src/${target}.cr
depends[$target]=src/config.cr
done
targets+=(src/config.cr)
type[src/config.cr]=script
sources[src/config.cr]=src/config.cr.in
auto[src/config.cr]=true # Dont display it in `make help`.
# FIXME: Redefining the backend so that script is not installed is a bit much.
function script.install {
ofile.install "$@"
}
install[status]='$(LIBEXECDIR)/service'