git-instaweb: respect bindir from Makefile
[gitweb.git] / Makefile
index 3e085dfa6fbabf1bcf758b795f32ea50a40880c2..691e40b7b2786b726250e06fed4e29135c461cee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -575,7 +575,7 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/gitweb.css
            -e '/@@GITWEB_CGI@@/d' \
            -e '/@@GITWEB_CSS@@/r gitweb/gitweb.css' \
            -e '/@@GITWEB_CSS@@/d' \
-           $@.sh > $@+
+           $@.sh | sed "s|/usr/bin/git|$(bindir)/git|" > $@+
        chmod +x $@+
        mv $@+ $@