aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-07-16 16:15:56 +0200
committerMattias Andrée <maandree@operamail.com>2012-07-16 16:15:56 +0200
commit96661759901c2e8a9110bb93574c0b33743b65e7 (patch)
treee00ffee2bf8fe762c1c38c36e3038755d27b76d4
parent8184d371a984d9a40c70d8a35d059daea5edab0a (diff)
downloadponysay-96661759901c2e8a9110bb93574c0b33743b65e7.tar.gz
ponysay-96661759901c2e8a9110bb93574c0b33743b65e7.tar.bz2
ponysay-96661759901c2e8a9110bb93574c0b33743b65e7.zip
Makefile gzip compresses manpages
-rw-r--r--Makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 52277e1..598767d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
-all: ponysaytruncater
+all: ponysaytruncater manpages
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
+
ttyponies:
mkdir -p ttyponies
./ttyponies.sh
@@ -29,12 +33,12 @@ install: all
install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"
mkdir -p "$(DESTDIR)/usr/share/man/man6"
- install "manuals/manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6"
- ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man6/ponythink.6"
+ install "manuals/manpage.6.gz" "$(DESTDIR)/usr/share/man/man6/ponysay.6.gz"
+ ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/man6/ponythink.6.gz"
mkdir -p "$(DESTDIR)/usr/share/man/es/man6"
- install "manuals/manpage.es.6" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6"
- ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6"
+ install "manuals/manpage.es.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6.gz"
+ ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"
uninstall:
rm -fr "$(DESTDIR)/usr/share/ponysay/ponies"
@@ -45,9 +49,13 @@ uninstall:
unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay";
unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"
unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay"
- unlink "$(DESTDIR)/usr/share/man/man6/ponysay.6"
- unlink "$(DESTDIR)/usr/share/man/man6/ponythink.6"
- unlink "$(DESTDIR)/usr/share/man/es/man6/ponysay.6"
- unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6"
+ unlink "$(DESTDIR)/usr/share/man/man6/ponysay.6.gz"
+ unlink "$(DESTDIR)/usr/share/man/man6/ponythink.6.gz"
+ unlink "$(DESTDIR)/usr/share/man/es/man6/ponysay.6.gz"
+ unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"
+
clean:
rm -f "ponysaytruncater"
+ rm manuals/manpage.6.gz
+ rm manuals/manpage.es.6.gz
+