aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-14 22:52:01 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-14 22:52:01 +0200
commitd24b8b19a7ea4b99da3de091664395a63de31ed0 (patch)
tree3b1085df4c3d20d1b0e6ae742b436271471ed426
parentf3be0884c8eb32d961e4ba278958a1bc7b917080 (diff)
downloadponysay-d24b8b19a7ea4b99da3de091664395a63de31ed0.tar.gz
ponysay-d24b8b19a7ea4b99da3de091664395a63de31ed0.tar.bz2
ponysay-d24b8b19a7ea4b99da3de091664395a63de31ed0.zip
make uninstall-old and make clean-old can be used to remove files from file locations/names that are no longer being used
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c89085a..155a540 100644
--- a/Makefile
+++ b/Makefile
@@ -117,6 +117,11 @@ uninstall:
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
+uninstall-old:
+ if [ -d "$(INSTALLDIR)/share/ponies" ]; then rm -fr "$(INSTALLDIR)/share/ponies" ; fi
+ if [ -d "$(INSTALLDIR)/share/ttyponies" ]; then rm -fr "$(INSTALLDIR)/share/ttyponies" ; fi
+ if [ -f "$(INSTALLDIR)/bin/ponysaytruncater" ]; then unlink "$(INSTALLDIR)/bin/ponysaytruncater" ; fi
+
clean:
if [ -f "truncater" ]; then rm -f "truncater" ; fi
if [ -f "completion/bash-completion-think.sh" ]; then rm -f "completion/bash-completion-think.sh" ; fi
@@ -126,6 +131,10 @@ clean:
if [ -f "manuals/manpage.es.6.gz" ]; then rm -f "manuals/manpage.es.6.gz" ; fi
if [ -f "ponysay.info.gz" ]; then rm -f "ponysay.info.gz" ; fi
+clean-old:
+ if [ -f "ponysaytruncater" ]; then rm -f "ponysaytruncater" ; fi
+
+
## Scripts for maintainers
ttyponies: