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 # Don’t 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'