2012-07-02 09:35:33 +00:00
|
|
|
all: ponysaytruncater
|
|
|
|
|
|
|
|
ponysaytruncater:
|
2012-05-11 16:40:48 +00:00
|
|
|
gcc -o "ponysaytruncater" "ponysaytruncater.c"
|
2012-07-02 09:35:33 +00:00
|
|
|
|
|
|
|
install: all
|
2012-05-11 16:40:48 +00:00
|
|
|
mkdir -p "$(DESTDIR)/usr/share/ponies"
|
|
|
|
mkdir -p "$(DESTDIR)/usr/share/ttyponies"
|
2012-07-02 09:35:33 +00:00
|
|
|
cp ponies/*.pony "$(DESTDIR)/usr/share/ponies/"
|
|
|
|
cp ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/"
|
|
|
|
|
2012-05-13 18:09:31 +00:00
|
|
|
mkdir -p "$(DESTDIR)/usr/bin/"
|
2012-05-13 16:35:00 +00:00
|
|
|
install "ponysay" "$(DESTDIR)/usr/bin/ponysay"
|
2012-05-11 16:40:48 +00:00
|
|
|
install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater"
|
|
|
|
ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink"
|
2012-07-02 09:35:33 +00:00
|
|
|
|
|
|
|
mkdir -p "$(DESTDIR)/usr/share/zsh/site-functions/"
|
|
|
|
install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"
|
|
|
|
|
2012-05-12 12:30:40 +00:00
|
|
|
mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/"
|
2012-07-02 09:35:33 +00:00
|
|
|
install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay"
|
|
|
|
|
2012-05-13 17:35:53 +00:00
|
|
|
mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/"
|
2012-05-13 16:35:00 +00:00
|
|
|
install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"
|
2012-04-04 07:45:03 +00:00
|
|
|
|
2012-07-04 07:39:37 +00:00
|
|
|
mkdir -p "$(DESTDIR)/usr/share/man/man6"
|
|
|
|
install "manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6"
|
|
|
|
|
2012-04-04 07:45:03 +00:00
|
|
|
uninstall:
|
2012-05-11 16:40:48 +00:00
|
|
|
rm -fr "$(DESTDIR)/usr/share/ponies"
|
|
|
|
rm -fr "$(DESTDIR)/usr/share/ttyponies"
|
|
|
|
unlink "$(DESTDIR)/usr/bin/ponysay"
|
|
|
|
unlink "$(DESTDIR)/usr/bin/ponysaytruncater"
|
|
|
|
unlink "$(DESTDIR)/usr/bin/ponythink"
|
2012-07-02 09:35:33 +00:00
|
|
|
unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay";
|
2012-05-12 00:19:59 +00:00
|
|
|
unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"
|
2012-05-12 01:00:21 +00:00
|
|
|
unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay"
|
2012-05-13 00:01:17 +00:00
|
|
|
|
|
|
|
clean:
|
2012-07-02 09:35:33 +00:00
|
|
|
rm -r "ponysaytruncater"
|