aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-18 21:05:45 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-18 21:05:45 +0200
commit3d7768e2efd138e089850d0e41b7f5a12d0f6fc9 (patch)
tree128333b7913eef7c2cb42996933e46da38f43f27 /Makefile
parent27f266731f13c839872e34809a3f5d640da27fc3 (diff)
downloadponysay-3d7768e2efd138e089850d0e41b7f5a12d0f6fc9.tar.gz
ponysay-3d7768e2efd138e089850d0e41b7f5a12d0f6fc9.tar.bz2
ponysay-3d7768e2efd138e089850d0e41b7f5a12d0f6fc9.zip
make fix + m
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index a5929db..8e9d426 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
PREFIX="/usr"
INSTALLDIR="$(DESTDIR)$(PREFIX)"
-
+SED_PREFIX=$$(sed -e 's/\//\\\//g' <<<$(PREFIX))
all: core truncater manpages infomanual ponythinkcompletion
core:
- sed -e 's/'\''\/usr\//'"$$(sed -e 's/'\''\//\\\//g' <<<$(PREFIX))"'\//g' <"ponysay.py" >"ponysay.py.install"
+ sed -e 's/'\''\/usr\//'\'"$(SED_PREFIX)"'\//g' <"ponysay.py" >"ponysay.py.install"
truncater:
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o "truncater" "truncater.c"
@@ -19,9 +19,9 @@ infomanual:
gzip -9 -f "ponysay.info"
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"
+ sed -e 's/'\''\/usr\//'\'"$(SED_PREFIX)"'\//g' <"completion/bash-completion.sh" >"completion/bash-completion.sh.install"
+ sed -e 's/'\''\/usr\//'\'"$(SED_PREFIX)"'\//g' <"completion/fish-completion.fish" >"completion/fish-completion.fish.install"
+ sed -e 's/'\''\/usr\//'\'"$(SED_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"
@@ -41,9 +41,10 @@ install-min: core truncater
install "ponysay" "$(INSTALLDIR)/bin/ponysay"
install "ponysay.py" "$(INSTALLDIR)/bin/ponysay.py"
ln -sf "ponysay" "$(INSTALLDIR)/bin/ponythink"
+ ln -sf "ponysay.py" "$(INSTALLDIR)/bin/ponythink.py"
- mkdir -p "$(INSTALLDIR)/lib/ponysay/"
- install -s "truncater" "$(INSTALLDIR)/lib/ponysay/truncater"
+ mkdir -p "$(INSTALLDIR)/lib/ponysay/"
+ install -s "truncater" "$(INSTALLDIR)/lib/ponysay/truncater"
mkdir -p "$(INSTALLDIR)/share/licenses/ponysay/"
install "COPYING" "$(INSTALLDIR)/share/licenses/ponysay/COPYING"
@@ -102,7 +103,7 @@ install: install-no-info install-info
'| |_| \___/ |_| |_| \__, ||___/ \__,_| \__, | |\n'\
'| |___/ |___/ |\n'\
'\\--------------------------------------------------/'
- @echo '' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n'
+ @echo 'dummy' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n'
uninstall:
if [ -d "$(INSTALLDIR)/share/ponysay" ]; then rm -fr "$(INSTALLDIR)/share/ponysay" ; fi