m + installation of info manual + prebuild PDF

This commit is contained in:
Mattias Andrée 2012-07-20 19:22:21 +02:00
parent 39968bb831
commit 6fcb65b964
4 changed files with 33 additions and 8 deletions

View file

@ -1,4 +1,4 @@
all: ponysaytruncater manpages ponythinkcompletion all: ponysaytruncater manpages infomanual ponythinkcompletion
ponysaytruncater: ponysaytruncater:
@ -6,8 +6,13 @@ ponysaytruncater:
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:
makeinfo "manuals/ponysay.texinfo"
gzip -9 "ponysay.info"
ponythinkcompletion: ponythinkcompletion:
@ -28,6 +33,20 @@ ttyponies:
done done
pdfmanual:
texi2pdf "manuals/ponysay.texinfo"
if [[ -f "ponysay.aux" ]]; then unlink "ponysay.aux"; fi
if [[ -f "ponysay.cp" ]]; then unlink "ponysay.cp" ; fi
if [[ -f "ponysay.cps" ]]; then unlink "ponysay.cps"; fi
if [[ -f "ponysay.fn" ]]; then unlink "ponysay.fn" ; fi
if [[ -f "ponysay.ky" ]]; then unlink "ponysay.ky" ; fi
if [[ -f "ponysay.log" ]]; then unlink "ponysay.log"; fi
if [[ -f "ponysay.pg" ]]; then unlink "ponysay.pg" ; fi
if [[ -f "ponysay.toc" ]]; then unlink "ponysay.toc"; fi
if [[ -f "ponysay.tp" ]]; then unlink "ponysay.tp" ; fi
if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi
install: all install: all
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"
@ -66,6 +85,10 @@ install: all
install "manuals/manpage.es.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6.gz" 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" ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"
mkdir -p "$(DESTDIR)/usr/share/info"
install "ponysay.info.gz" "$(DESTDIR)/usr/share/info/ponysay.info.gz"
ln -sf "ponysay.info.gz" "$(DESTDIR)/usr/share/info/ponythink.info.gz"
@echo -e '\n\n'\ @echo -e '\n\n'\
'/--------------------------------------------------\\\n'\ '/--------------------------------------------------\\\n'\
'| ___ |\n'\ '| ___ |\n'\
@ -103,6 +126,8 @@ uninstall:
unlink "$(DESTDIR)/usr/share/man/man6/ponythink.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/ponysay.6.gz"
unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz" unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"
unlink "$(DESTDIR)/usr/share/info/ponysay.info.gz"
unlink "$(DESTDIR)/usr/share/info/ponythink.info.gz"
clean: clean:
@ -112,4 +137,4 @@ clean:
rm "completion/zsh-completion-think.zsh" rm "completion/zsh-completion-think.zsh"
rm "manuals/manpage.6.gz" rm "manuals/manpage.6.gz"
rm "manuals/manpage.es.6.gz" rm "manuals/manpage.es.6.gz"
rm "ponysay.info.gz"

View file

@ -294,7 +294,7 @@ you run @command{ponythink}.
@menu @menu
* Terminals:: Limitations on terminals. * Terminals:: Limitations on terminals.
* Cowsay:: Limitations on cowsay, * Cowsay:: Limitations on cowsay.
@end menu @end menu

BIN
ponysay.pdf Normal file

Binary file not shown.