From 96661759901c2e8a9110bb93574c0b33743b65e7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Jul 2012 16:15:56 +0200 Subject: Makefile gzip compresses manpages --- Makefile | 26 +++++++++++++++++--------- 1 file 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 + -- cgit