More stuff gets installed through `make install`.

master
Luka Vandervelden 2019-10-19 18:17:50 +02:00
parent 3c20783f91
commit ca013e37d8
1 changed files with 14 additions and 2 deletions

View File

@ -19,11 +19,23 @@ done
targets+=(src/config.cr)
type[src/config.cr]=script
sources[src/config.cr]=src/config.cr.in
install[src/config.cr]=false
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.
for file in services/*.spec; do
targets+=($file)
type[$file]=script
install[$file]='$(SHAREDIR)/services'
auto[$file]=true
done
# FIXME: This should be upstreamed.
function script.install {
ofile.install "$@"
if [[ "false" = "${install[$target]}" ]]; then
ofile.install "$@"
else
binary.install "$@"
fi
}
install[status]='$(LIBEXECDIR)/service'