From: Gregor Jasny <gjasny@googlemail.com>
Date: Thu, 17 Oct 2013 19:25:09 +0000 (+0200)
Subject: Make root tool configurable
X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/ccf40b91a67127084ee81e875ee5b77b3b0f019d?ds=sidebyside;hp=8fdcc3386f9767aebfecf3eda3cff16333273644

Make root tool configurable

On Macports one need to run ronn-1.9 instead of ronn. Therefore
make ronn tool configurable. one can now run

make RONN=ronn-1.9

to execute ronn-1.9 instead of the default ronn.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
---

diff --git a/Makefile b/Makefile
index cb112c7..18ea7cd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 PREFIX=/usr
+RONN ?= ronn
 
 self=vcsh
 manpages=$(self).1
@@ -20,7 +21,7 @@ install: all
 manpages: $(manpages)
 
 $(self).1: doc/$(self).1.ronn
-	ronn < doc/$(self).1.ronn > $(self).1
+	$(RONN) < doc/$(self).1.ronn > $(self).1 || rm $(self).1
 
 clean:
 	rm -rf $(self).1