From ca013e37d80eeab22d3ba244137e0032bf58e9be Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sat, 19 Oct 2019 18:17:50 +0200 Subject: [PATCH] More stuff gets installed through `make install`. --- project.zsh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/project.zsh b/project.zsh index 0c86a79..0c47146 100644 --- a/project.zsh +++ b/project.zsh @@ -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 # Don’t 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'