aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-04-01 01:58:22 +0200
committerjaseg <s@jaseg.de>2013-04-01 01:58:22 +0200
commitf2b6fcdb08cb801a8e4e7200d41395b1ff7df559 (patch)
tree7426d0e17ba25ba07052db285c61a8d5d8aa2fa5
parentb2cee466b12ac237a55c8dfbe7503249a6647968 (diff)
downloadponysay-f2b6fcdb08cb801a8e4e7200d41395b1ff7df559.tar.gz
ponysay-f2b6fcdb08cb801a8e4e7200d41395b1ff7df559.tar.bz2
ponysay-f2b6fcdb08cb801a8e4e7200d41395b1ff7df559.zip
Fixed the Makefile
-rw-r--r--Makefile32
1 files changed, 16 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 7279fbc..890ea35 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,22 @@
-prefix=/usr
+PREFIX?=/usr
install:
- install -m 0755 ponysay.py $(prefix)/bin
- ln -s $(prefix)/bin/ponysay.py $(prefix)/bin/ponysay
- ln -s $(prefix)/bin/ponysay.py $(prefix)/bin/ponythink
- install -m 0755 -d $(prefix)/share/ponysay
- install -m 0755 -t $(prefix)/share/ponysay ponies/*
- install -m 0755 -d $(prefix)/share/doc/ponysay
- install -m 0755 -t $(prefix)/share/doc/ponysay COPYING
- install -m 0755 -t $(prefix)/share/doc/ponysay README.md
+ install -m 0755 ponysay.py $(PREFIX)/bin
+ ln -s $(PREFIX)/bin/ponysay.py $(PREFIX)/bin/ponysay
+ ln -s $(PREFIX)/bin/ponysay.py $(PREFIX)/bin/ponythink
+ install -m 0755 -d $(PREFIX)/share/ponysay
+ install -m 0755 -t $(PREFIX)/share/ponysay ponies/*
+ install -m 0755 -d $(PREFIX)/share/doc/ponysay
+ install -m 0755 -t $(PREFIX)/share/doc/ponysay COPYING
+ install -m 0755 -t $(PREFIX)/share/doc/ponysay README.md
uninstall:
- rm $(prefix)/bin/ponysay
- rm $(prefix)/bin/ponythink
- rm $(prefix)/bin/ponysay.py
- rm $(prefix)/share/ponysay/*
- rmdir $(prefix)/share/ponysay
- rm $(prefix)/share/doc/ponysay/*
- rmdir $(prefix)/share/doc/ponysay
+ rm $(PREFIX)/bin/ponysay
+ rm $(PREFIX)/bin/ponythink
+ rm $(PREFIX)/bin/ponysay.py
+ rm $(PREFIX)/share/ponysay/*
+ rmdir $(PREFIX)/share/ponysay
+ rm $(PREFIX)/share/doc/ponysay/*
+ rmdir $(PREFIX)/share/doc/ponysay