aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-15 21:22:17 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-15 21:22:17 +0200
commit1427db8ebbcba3189af6f2d26b69e61ade316826 (patch)
treecc1d564d97aca18a20285aecc90a86b977109624
parent9614b8f24a09405e062388bfd82c34a55e6eff9c (diff)
downloadponysay-1427db8ebbcba3189af6f2d26b69e61ade316826.tar.gz
ponysay-1427db8ebbcba3189af6f2d26b69e61ade316826.tar.bz2
ponysay-1427db8ebbcba3189af6f2d26b69e61ade316826.zip
`make install-pdf` installs the pdf manual into /usr/doc, this is not done by default (i.e. `make install`) + make unstall fix
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dea75ef..fe51c77 100644
--- a/Makefile
+++ b/Makefile
@@ -84,6 +84,9 @@ install-info: infomanual
install-no-info: install-min install-bash install-zsh install-fish install-man install-man-es
+install-pdf:
+ install "ponysay.pdf" "$(INSTALLDIR)/doc/ponysay.pdf"
+
install: install-no-info install-info
@echo -e '\n\n'\
'/--------------------------------------------------\\\n'\
@@ -120,7 +123,8 @@ uninstall:
if [ -f "$(INSTALLDIR)/share/man/es/man6/ponysay.6.gz" ]; then unlink "$(INSTALLDIR)/share/man/es/man6/ponysay.6.gz" ; fi
if [ -f "$(INSTALLDIR)/share/man/es/man6/ponythink.6.gz" ]; then unlink "$(INSTALLDIR)/share/man/es/man6/ponythink.6.gz" ; fi
if [ -f "$(INSTALLDIR)/share/info/ponysay.info.gz" ]; then unlink "$(INSTALLDIR)/share/info/ponysay.info.gz" ; fi
- if [ -f unlink "$(INSTALLDIR)/share/info/ponythink.info.gz" ]; then unlink "$(INSTALLDIR)/share/info/ponythink.info.gz" ; fi
+ if [ -f "$(INSTALLDIR)/share/info/ponythink.info.gz" ]; then unlink "$(INSTALLDIR)/share/info/ponythink.info.gz" ; fi
+ if [ -f "$(INSTALLDIR)/doc/ponysay.pdf" ]; then unlink "$(INSTALLDIR)/doc/ponysay.pdf" ; fi
uninstall-old:
if [ -d "$(INSTALLDIR)/share/ponies" ]; then rm -fr "$(INSTALLDIR)/share/ponies" ; fi