aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-07-24 14:58:05 +0200
committerMattias Andrée <maandree@operamail.com>2012-07-24 14:58:05 +0200
commit110c73186be52189a293c0adda10e7874d143c0b (patch)
treea38199ca94d7397709dbf35b695cf64b13415bae /Makefile
parent7dced5dd382ecebcde1f84a80f5f734b0fd046c2 (diff)
parent9fc93bbef458d8660bc9322fb637a3c0273a75b7 (diff)
downloadponysay-110c73186be52189a293c0adda10e7874d143c0b.tar.gz
ponysay-110c73186be52189a293c0adda10e7874d143c0b.tar.bz2
ponysay-110c73186be52189a293c0adda10e7874d143c0b.zip
Merge branch 'master' of github.com:erkin/ponysay
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 1 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index d4c6503..4feb3fc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,21 @@
all: ponysaytruncater manpages infomanual ponythinkcompletion
-
ponysaytruncater:
gcc -o "ponysaytruncater" "ponysaytruncater.c"
-
manpages:
gzip -9 < "manuals/manpage.6" > "manuals/manpage.6.gz"
gzip -9 < "manuals/manpage.es.6" > "manuals/manpage.es.6.gz"
-
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"
-
ttyponies:
mkdir -p ttyponies
for pony in $$(ls --color=no ponies/); do \
@@ -32,7 +27,6 @@ ttyponies:
fi \
done
-
pdfmanual:
texi2pdf "manuals/ponysay.texinfo"
if [[ -f "ponysay.aux" ]]; then unlink "ponysay.aux"; fi
@@ -46,8 +40,7 @@ pdfmanual:
if [[ -f "ponysay.tp" ]]; then unlink "ponysay.tp" ; fi
if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi
-
-install:
+install: all
mkdir -p "$(DESTDIR)/usr/share/ponysay/"
mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies"
@@ -110,7 +103,6 @@ install:
'\\--------------------------------------------------/'
@echo '' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n'
-
uninstall:
rm -fr "$(DESTDIR)/usr/share/ponysay/ponies"
rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies"
@@ -133,7 +125,6 @@ uninstall:
unlink "$(DESTDIR)/usr/share/info/ponysay.info.gz"
unlink "$(DESTDIR)/usr/share/info/ponythink.info.gz"
-
clean:
rm -f "ponysaytruncater"
rm -f "completion/bash-completion-think.sh"