mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-07 13:36:43 +01:00
svenstaro: make install obviously should correctly have the other deps set up
This commit is contained in:
parent
c5c515cc89
commit
9fc93bbef4
1 changed files with 1 additions and 10 deletions
11
Makefile
11
Makefile
|
@ -1,26 +1,21 @@
|
||||||
all: ponysaytruncater manpages infomanual ponythinkcompletion
|
all: ponysaytruncater manpages infomanual ponythinkcompletion
|
||||||
|
|
||||||
|
|
||||||
ponysaytruncater:
|
ponysaytruncater:
|
||||||
gcc -o "ponysaytruncater" "ponysaytruncater.c"
|
gcc -o "ponysaytruncater" "ponysaytruncater.c"
|
||||||
|
|
||||||
|
|
||||||
manpages:
|
manpages:
|
||||||
gzip -9 < "manuals/manpage.6" > "manuals/manpage.6.gz"
|
gzip -9 < "manuals/manpage.6" > "manuals/manpage.6.gz"
|
||||||
gzip -9 < "manuals/manpage.es.6" > "manuals/manpage.es.6.gz"
|
gzip -9 < "manuals/manpage.es.6" > "manuals/manpage.es.6.gz"
|
||||||
|
|
||||||
|
|
||||||
infomanual:
|
infomanual:
|
||||||
makeinfo "manuals/ponysay.texinfo"
|
makeinfo "manuals/ponysay.texinfo"
|
||||||
gzip -9 "ponysay.info"
|
gzip -9 "ponysay.info"
|
||||||
|
|
||||||
|
|
||||||
ponythinkcompletion:
|
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/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/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"
|
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:
|
ttyponies:
|
||||||
mkdir -p ttyponies
|
mkdir -p ttyponies
|
||||||
for pony in $$(ls --color=no ponies/); do \
|
for pony in $$(ls --color=no ponies/); do \
|
||||||
|
@ -32,7 +27,6 @@ ttyponies:
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
pdfmanual:
|
pdfmanual:
|
||||||
texi2pdf "manuals/ponysay.texinfo"
|
texi2pdf "manuals/ponysay.texinfo"
|
||||||
if [[ -f "ponysay.aux" ]]; then unlink "ponysay.aux"; fi
|
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.tp" ]]; then unlink "ponysay.tp" ; fi
|
||||||
if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi
|
if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi
|
||||||
|
|
||||||
|
install: all
|
||||||
install:
|
|
||||||
mkdir -p "$(DESTDIR)/usr/share/ponysay/"
|
mkdir -p "$(DESTDIR)/usr/share/ponysay/"
|
||||||
mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
|
mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
|
||||||
mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies"
|
mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies"
|
||||||
|
@ -109,7 +102,6 @@ install:
|
||||||
'\\--------------------------------------------------/'
|
'\\--------------------------------------------------/'
|
||||||
@echo '' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n'
|
@echo '' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n'
|
||||||
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -fr "$(DESTDIR)/usr/share/ponysay/ponies"
|
rm -fr "$(DESTDIR)/usr/share/ponysay/ponies"
|
||||||
rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies"
|
rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies"
|
||||||
|
@ -131,7 +123,6 @@ uninstall:
|
||||||
unlink "$(DESTDIR)/usr/share/info/ponysay.info.gz"
|
unlink "$(DESTDIR)/usr/share/info/ponysay.info.gz"
|
||||||
unlink "$(DESTDIR)/usr/share/info/ponythink.info.gz"
|
unlink "$(DESTDIR)/usr/share/info/ponythink.info.gz"
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f "ponysaytruncater"
|
rm -f "ponysaytruncater"
|
||||||
rm -f "completion/bash-completion-think.sh"
|
rm -f "completion/bash-completion-think.sh"
|
||||||
|
|
Loading…
Reference in a new issue