aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 194fa29..e9c3279 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,11 @@ ponysaytruncater:
gcc -o "ponysaytruncater" "ponysaytruncater.c"
install: all
- mkdir -p "$(DESTDIR)/usr/share/ponies"
- mkdir -p "$(DESTDIR)/usr/share/ttyponies"
- cp ponies/*.pony "$(DESTDIR)/usr/share/ponies/"
- cp ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/"
+ mkdir -p "$(DESTDIR)/usr/share/ponysay/"
+ mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
+ mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies"
+ cp ponies/*.pony "$(DESTDIR)/usr/share/ponysay/ponies/"
+ cp ttyponies/*.pony "$(DESTDIR)/usr/share/ponysay/ttyponies/"
mkdir -p "$(DESTDIR)/usr/bin/"
install "ponysay" "$(DESTDIR)/usr/bin/ponysay"
@@ -28,8 +29,8 @@ install: all
ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/man1/ponythink.1"
uninstall:
- rm -fr "$(DESTDIR)/usr/share/ponies"
- rm -fr "$(DESTDIR)/usr/share/ttyponies"
+ rm -fr "$(DESTDIR)/usr/share/ponysay/ponies"
+ rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies"
unlink "$(DESTDIR)/usr/bin/ponysay"
unlink "$(DESTDIR)/usr/bin/ponysaytruncater"
unlink "$(DESTDIR)/usr/bin/ponythink"