aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-07-29 19:29:32 +0200
committerjaseg <s@jaseg.de>2013-07-29 19:56:31 +0200
commit13f954f4ecace0c4888e194c75a26666fa3fc305 (patch)
tree73935ab0012f0e722efee915ecb77af58b930350 /Makefile
parent1466970c712fbd3f8579fdc995acc80e0e115299 (diff)
downloadponysay-13f954f4ecace0c4888e194c75a26666fa3fc305.tar.gz
ponysay-13f954f4ecace0c4888e194c75a26666fa3fc305.tar.bz2
ponysay-13f954f4ecace0c4888e194c75a26666fa3fc305.zip
Added a proper setup.py
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 3 insertions, 29 deletions
diff --git a/Makefile b/Makefile
index 9575354..69c10e8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,37 +1,11 @@
-PREFIX?=/usr/local
+all: genponies
-install: genponies
- 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 quotes/*
- install -m 0755 -t $(PREFIX)/share/ponysay genponies/*
- 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 0644 completion/zsh-completion.sh /usr/share/zsh/site-functions/_ponysay
- install -m 0755 completion/bash-completion.sh /etc/bash_completion.d/ponysay.sh
-
-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 /usr/share/zsh/site-functions/_ponysay
- rm /etc/bash_completion.d/ponysay.sh
-
-reinstall: uninstall install
-
-genpngs:
+genpngs: ponies/*
mkdir genpngs
unpixelterm -d genpngs ponies/*.pony
-genponies:
+genponies: pngs/*
mkdir genponies
pixelterm -d genponies pngs/*.png