Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for alternate install prefix, eg. ~/.local

  • Loading branch information...
commit 689f247ec6231c7ef72562e71860ab73843d7ee9 1 parent 2d2a1d5
@tnovelli tnovelli authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 Makefile
  2. +1 −1  bin/mad
View
4 Makefile
@@ -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
2  bin/mad
@@ -76,7 +76,7 @@ display_mad_usage() {
#
install_all_remote() {
- local path=/usr/local/share/mad
+ local path=${MAD_PATH:-/usr/local/share/mad}
echo
echo " ... cloning repo"
cd /tmp && rm -fr mad-pages
Please sign in to comment.
Something went wrong with that request. Please try again.