Permalink
Browse files

Merge pull request #4 from tnovelli/master

Sweet. One lil fix.
  • Loading branch information...
2 parents 2d2a1d5 + 0e37ead commit 34e1a5875882f343c58b8a2c04b687da12a24b8e @tj committed Apr 19, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Makefile
  2. +2 −2 bin/mad
View
@@ -1,8 +1,8 @@
-PREFIX=/usr/local
+PREFIX?=/usr/local
install:
- mkdir -p $(PREFIX)/share/mad
+ mkdir -p $(PREFIX)/share/mad $(PREFIX)/etc $(PREFIX)/bin
cp -f bin/mad $(PREFIX)/bin/mad
cp -f share/mad/mad.md $(PREFIX)/share/mad/mad.md
cp -f etc/mad.conf $(PREFIX)/etc/mad.conf
View
@@ -13,7 +13,7 @@ MAD_CONFIG=${MAD_CONFIG:-$CONFIG}
display() {
IFS=":"
local page=$1
- local paths=".:$MAD_PATH:/usr/local/share/mad:/usr/share/mad"
+ local paths=".:$MAD_PATH:$(dirname $0)/../share/mad:/usr/share/mad"
for path in $paths; do
local file=$path/$page
@@ -76,7 +76,7 @@ display_mad_usage() {
#
install_all_remote() {
- local path=/usr/local/share/mad
+ local path=$(dirname $0)/../share/mad
echo
echo " ... cloning repo"
cd /tmp && rm -fr mad-pages

0 comments on commit 34e1a58

Please sign in to comment.