aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDuane Bekaert <duane.bekaert@gmail.com>2012-04-04 09:45:03 +0200
committerDuane Bekaert <duane.bekaert@gmail.com>2012-04-04 09:45:03 +0200
commit14596502d66492c2ddd47a673cd92acdfb2bcd81 (patch)
treeb570e6b64a936915c1a42df8f01f97c2eef23587 /Makefile
parenta6ca6e858a65acc0434d0bd1ad8ba39ffb0fcc71 (diff)
downloadponysay-14596502d66492c2ddd47a673cd92acdfb2bcd81.tar.gz
ponysay-14596502d66492c2ddd47a673cd92acdfb2bcd81.tar.bz2
ponysay-14596502d66492c2ddd47a673cd92acdfb2bcd81.zip
Added the uninstall target in the makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7dc2750..ec25bf4 100644
--- a/Makefile
+++ b/Makefile
@@ -2,4 +2,10 @@ install:
mkdir -p $(DESTDIR)/usr/share/ponies
cp -r ponies/*.pony $(DESTDIR)/usr/share/ponies/
install -Dm755 ponysay $(DESTDIR)/usr/bin/ponysay
- ln -s ponysay $(DESTDIR)/usr/bin/ponythink
+ ln -s ponysay $(DESTDIR)/usr/bin/ponythink**
+
+uninstall:
+ rm -fr $(DESTDIR)/usr/share/ponies
+# cp -r ponies/*.pony $(DESTDIR)/usr/share/ponies/
+ rm -f $(DESTDIR)/usr/bin/ponysay
+ unlink $(DESTDIR)/usr/bin/ponythink**