service/project.zsh

31 lines
600 B
Bash
Raw Normal View History

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'