aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index a0e8e88..9431e87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
-ponydir=/usr/share/ponies/
-scripts=ponysay ponythink
-bindir=/usr/bin/
install:
- mkdir $(ponydir)
- cp -r ponies $(ponydir)
- cp $(scripts) $(bindir)
+ mkdir -p $(DESTDIR)/usr/share/ponies
+ cp -r ponies/*.cow $(DESTDIR)/usr/share/ponies/
+ install -Dm755 ponysay $(DESTDIR)/usr/bin/ponysay
+ ln -s ponysay $(DESTDIR)/usr/bin/ponythink