diff options
author | Elis <elis.axelsson@gmail.com> | 2012-07-20 12:42:25 -0700 |
---|---|---|
committer | Elis <elis.axelsson@gmail.com> | 2012-07-20 12:42:25 -0700 |
commit | b595f143c8f2dbc5bba6e80dfc145fdf0594b0df (patch) | |
tree | aac77034827dcbfe339bcbd811e2cca4cc9402fa /Makefile | |
parent | 6bff7576ebe259f9cb88c75e6131353c1e55a70f (diff) | |
parent | 6f7decf58faeae2a385980bddba0760ae7410f23 (diff) | |
download | ponysay-b595f143c8f2dbc5bba6e80dfc145fdf0594b0df.tar.gz ponysay-b595f143c8f2dbc5bba6e80dfc145fdf0594b0df.tar.bz2 ponysay-b595f143c8f2dbc5bba6e80dfc145fdf0594b0df.zip |
Merge pull request #4 from erkin/master
get up to date
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 32 insertions, 5 deletions
@@ -1,4 +1,4 @@ -all: ponysaytruncater manpages ponythinkcompletion +all: ponysaytruncater manpages infomanual ponythinkcompletion ponysaytruncater: @@ -6,8 +6,13 @@ ponysaytruncater: manpages: - gzip -9 < manuals/manpage.6 > manuals/manpage.6.gz - gzip -9 < manuals/manpage.es.6 > manuals/manpage.es.6.gz + gzip -9 < "manuals/manpage.6" > "manuals/manpage.6.gz" + gzip -9 < "manuals/manpage.es.6" > "manuals/manpage.es.6.gz" + + +infomanual: + makeinfo "manuals/ponysay.texinfo" + gzip -9 "ponysay.info" ponythinkcompletion: @@ -28,7 +33,21 @@ ttyponies: done -install: all +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: mkdir -p "$(DESTDIR)/usr/share/ponysay/" mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies" mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies" @@ -66,6 +85,12 @@ install: all 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" + 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" + install-info --dir-file="$(DESTDIR)/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "$(DESTDIR)/usr/share/info/ponysay.info.gz" + install-info --dir-file="$(DESTDIR)/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "$(DESTDIR)/usr/share/info/ponythink.info.gz" + @echo -e '\n\n'\ '/--------------------------------------------------\\\n'\ '| ___ |\n'\ @@ -103,6 +128,8 @@ uninstall: 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" + unlink "$(DESTDIR)/usr/share/info/ponysay.info.gz" + unlink "$(DESTDIR)/usr/share/info/ponythink.info.gz" clean: @@ -112,4 +139,4 @@ clean: rm "completion/zsh-completion-think.zsh" rm "manuals/manpage.6.gz" rm "manuals/manpage.es.6.gz" - + rm "ponysay.info.gz" |