aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-15 21:05:30 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-15 21:05:30 +0200
commit9614b8f24a09405e062388bfd82c34a55e6eff9c (patch)
tree5d3bcd0a23a178b8072f8a8c72c28a5aee7226b8 /Makefile
parent0ec99bab37dbc01b9484719114cc0eaa6738810e (diff)
downloadponysay-9614b8f24a09405e062388bfd82c34a55e6eff9c.tar.gz
ponysay-9614b8f24a09405e062388bfd82c34a55e6eff9c.tar.bz2
ponysay-9614b8f24a09405e062388bfd82c34a55e6eff9c.zip
PREFIX is applied into completions scripts
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 18 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 155a540..dea75ef 100644
--- a/Makefile
+++ b/Makefile
@@ -15,10 +15,15 @@ infomanual:
makeinfo "manuals/ponysay.texinfo"
gzip -9 "ponysay.info"
-ponythinkcompletion:
- sed -e 's/ponysay/ponythink/g' <"completion/bash-completion.sh" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/bash-completion-think.sh"
- sed -e 's/ponysay/ponythink/g' <"completion/fish-completion.fish" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/fish-completion-think.fish"
- sed -e 's/ponysay/ponythink/g' <"completion/zsh-completion.zsh" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/zsh-completion-think.zsh"
+ponysaycompletion:
+ sed -e 's/\/usr\//'"$$(sed -e 's/\//\\\//g' <<<$(PREFIX))"'\//g' <"completion/bash-completion.sh" >"completion/bash-completion.sh.install"
+ sed -e 's/\/usr\//'"$$(sed -e 's/\//\\\//g' <<<$(PREFIX))"'\//g' <"completion/fish-completion.fish" >"completion/fish-completion.fish.install"
+ sed -e 's/\/usr\//'"$$(sed -e 's/\//\\\//g' <<<$(PREFIX))"'\//g' <"completion/zsh-completion.zsh" >"completion/zsh-completion.zsh.install"
+
+ponythinkcompletion: ponysaycompletion
+ sed -e 's/ponysay/ponythink/g' <"completion/bash-completion.sh.install" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/bash-completion-think.sh"
+ sed -e 's/ponysay/ponythink/g' <"completion/fish-completion.fish.install" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/fish-completion-think.fish"
+ sed -e 's/ponysay/ponythink/g' <"completion/zsh-completion.zsh.install" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/zsh-completion-think.zsh"
install-min: truncater
mkdir -p "$(INSTALLDIR)/share/ponysay/"
@@ -46,19 +51,19 @@ install-min: truncater
install "COPYING" "$(INSTALLDIR)/share/licenses/ponysay/COPYING"
install-bash: ponythinkcompletion
- mkdir -p "$(INSTALLDIR)/share/bash-completion/completions/"
- install "completion/bash-completion.sh" "$(INSTALLDIR)/share/bash-completion/completions/ponysay"
- install "completion/bash-completion-think.sh" "$(INSTALLDIR)/share/bash-completion/completions/ponythink"
+ mkdir -p "$(INSTALLDIR)/share/bash-completion/completions/"
+ install "completion/bash-completion.sh.install" "$(INSTALLDIR)/share/bash-completion/completions/ponysay"
+ install "completion/bash-completion-think.sh" "$(INSTALLDIR)/share/bash-completion/completions/ponythink"
install-zsh: ponythinkcompletion
- mkdir -p "$(INSTALLDIR)/share/zsh/site-functions/"
- install "completion/zsh-completion.zsh" "$(INSTALLDIR)/share/zsh/site-functions/_ponysay"
- install "completion/zsh-completion-think.zsh" "$(INSTALLDIR)/share/zsh/site-functions/_ponythink"
+ mkdir -p "$(INSTALLDIR)/share/zsh/site-functions/"
+ install "completion/zsh-completion.zsh.install" "$(INSTALLDIR)/share/zsh/site-functions/_ponysay"
+ install "completion/zsh-completion-think.zsh" "$(INSTALLDIR)/share/zsh/site-functions/_ponythink"
install-fish: ponythinkcompletion
- mkdir -p "$(INSTALLDIR)/share/fish/completions/"
- install "completion/fish-completion.fish" "$(INSTALLDIR)/share/fish/completions/ponysay.fish"
- install "completion/fish-completion-think.fish" "$(INSTALLDIR)/share/fish/completions/ponythink.fish"
+ mkdir -p "$(INSTALLDIR)/share/fish/completions/"
+ install "completion/fish-completion.fish.install" "$(INSTALLDIR)/share/fish/completions/ponysay.fish"
+ install "completion/fish-completion-think.fish" "$(INSTALLDIR)/share/fish/completions/ponythink.fish"
install-man: manpages
mkdir -p "$(INSTALLDIR)/share/man/man6"